Buttons is a box area or text that communicates and triggers user actions when clicked.

Common buttons

Name
Type
Description
variantString: filled, tonal, outlined, elevated, textSet the variant of the button.
classNameStringRefine the styles if the default ones don't fit and need customization.
onClickFunctionControls the button's behaviour.
iconLeftNodeAdds icon before button label
iconRightNodeAdds icon after button label
iconNodeAdds single icon button
disabledBooleanSet the state of the button to disabled.
childrenNodeSet the displayed text on the button.
textStringSet the displayed text on the button.

Extended FAB

Name
Type
Description
variantString: surface, secondary, tertiarySet the variant of the button.
classNameStringRefine the styles if the default ones don't fit and need customization.
onClickFunctionControls the button's behaviour.
iconNodeAdds single icon button
disabledBooleanSet the state of the button to disabled.
childrenNodeSet the displayed text on the button.
textStringSet the displayed text on the button.

FAB

Name
Type
Description
variantString: surface, secondary, tertiarySet the variant of the button.
classNameStringRefine the styles if the default ones don't fit and need customization.
onClickFunctionControls the button's behaviour.
iconNodeAdds single icon button
disabledBooleanSet the state of the button to disabled.

Icon buttons

Name
Type
Description
variantString: filled, tonal, outlined, standard️Set the variant of the button.
classNameStringRefine the styles if the default ones don't fit and need customization.
onClickFunctionControls the button's behaviour.
iconNodeAdds single icon button
disabledBooleanSet the state of the button to disabled.
id️StringThe id attribute.

Segmented buttons