Macro DC

Source
macro_rules! DC {
    ( $($class:expr $(,)?)+ ) => { ... };
}
Expand description

Variant of the C! macro for use with Dioxus class attributes.

This works exactly like C! but it is designed to work with Dioxus’s attributes.

If you want to import this as C! just write this:

use tailwindcss_to_rust_macros::DC as C;

div {
   class: DC![C.typ.text_lg],
   ...
}