A button styled with the shadcn variant/size system.
Renders a <button> carrying data-slot="button" plus data-variant and
data-size for stable styling/targeting. Caller-supplied class is appended
last; Tailwind cascade layers ensure it wins over the defaults.
Summary
Functions
Attributes
variant(:string) - Defaults to"default". Must be one of"default","secondary","destructive","outline","ghost", or"link".size(:string) - Defaults to"default". Must be one of"default","sm","lg", or"icon".type(:string) - Defaults to"button".class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["disabled", "form", "name", "value", "autofocus"].
Slots
inner_block(required)