ButtonSlotProps
ButtonSlotProps =
object
Defined in: packages/ui/src/types.ts:83
Props for the button plugin slot.
Implemented by the UI plugin to render interactive buttons throughout the framework. Used internally by ActionButtonProps and other interactive components.
UIPluginComponents for the slot registration point.
Properties
Section titled “Properties”children
Section titled “children”children:
ReactNode
Defined in: packages/ui/src/types.ts:85
Button content.
color?
Section titled “color?”
optionalcolor:"primary"|"neutral"|"danger"|"success"|"warning"
Defined in: packages/ui/src/types.ts:95
Color theme.
disabled?
Section titled “disabled?”
optionaldisabled:boolean
Defined in: packages/ui/src/types.ts:89
Whether the button is disabled.
loading?
Section titled “loading?”
optionalloading:boolean
Defined in: packages/ui/src/types.ts:91
Whether the button is in a loading state.
onClick()?
Section titled “onClick()?”
optionalonClick: () =>void
Defined in: packages/ui/src/types.ts:87
Click handler.
Returns
Section titled “Returns”void
optionalsize:"sm"|"md"|"lg"
Defined in: packages/ui/src/types.ts:97
Size of the button.
startDecorator?
Section titled “startDecorator?”
optionalstartDecorator:ReactNode
Defined in: packages/ui/src/types.ts:101
Element rendered before the button label.
optionaltype:"button"|"submit"
Defined in: packages/ui/src/types.ts:99
HTML button type attribute.
variant?
Section titled “variant?”
optionalvariant:"solid"|"soft"|"outlined"|"plain"
Defined in: packages/ui/src/types.ts:93
Visual style variant.