Skip to main content

button_variants

Function button_variants 

Source
pub fn button_variants(
    variant: ButtonVariant,
    size: ButtonSize,
) -> Class<(StaticClass, StaticClass, StaticClass)>
Expand description

The classes of a button, for a link or a summary that reads as one. Give the element data-slot="button" and the variant’s data-tone too, so each theme’s skin reaches it.