tw

Macro tw 

Source
tw!() { /* proc-macro */ }
Expand description

Allows to trace additional tailwind class names.

To use tailwind class name outside of literal tw attribute value, wrap it with tw! macro, so it gets traced by tailwind bundler.

use vertigo::{dom, tw};

let my_class = tw!("flex");

dom! {
    <div tw={my_class}>
        <p>"One"</p>
        <p>"Two"</p>
    </div>
};