Button
Actions

Button.

Unified press, hover and focus behaviors with subtle, lift and no-motion options.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

8 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeNo——Content shown inside the button.
variant"primary" | "secondary" | "ghost" | "outline" | "danger"Nosecondaryprimary · secondary · ghost · outline · dangerVisual button treatment.
size"sm" | "md" | "lg" | "icon"Nomdsm · md · lg · iconButton dimensions and padding.
motion"subtle" | "lift" | "none"Nosubtlesubtle · lift · noneLocal hover and press animation mode.
loadingbooleanNofalsetrue · falseShows a loading icon and disables interaction.
disabledbooleanNofalsetrue · falsePrevents pointer and keyboard activation.
type"button" | "submit" | "reset"Nobuttonbutton · submit · resetNative form button behavior.
onClick(event) => voidNo——Callback when the button is activated.