getButtonClass()function

getButtonClass(variants: ButtonVariants): string
ParamType
variantsButtonVariants
The button styling variants (block, flex, status, plus button toggles). required
    .solidboolean
Solid styling: a strong fill of the tint colour with white text. Use it for the main action.
    .plainboolean
Plain styling: no fill or border until hover or focus.
    .outlineboolean
Outline styling: like plain, but with a border until hover or focus.
    .selectedboolean
Whether the button is the selected one in a group, such as a set of tabs.
- true sets aria-pressed (or aria-current on a link) and keeps the button's normal look.
- false also drops the fill until hover or focus, so the selected button stands out.
- undefined (the default) means the button is not part of a group.
    .smallboolean
Make the button appear smaller.
    .fullboolean
Fill the available width instead of sizing to content (buttons are content-width by default).
Return
string
A space-separated className string combining all the resolved variant classes.

Get the full combined className string for a button from its styling variants.