Skip to content

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.

children: ReactNode

Defined in: packages/ui/src/types.ts:85

Button content.


optional color: "primary" | "neutral" | "danger" | "success" | "warning"

Defined in: packages/ui/src/types.ts:95

Color theme.


optional disabled: boolean

Defined in: packages/ui/src/types.ts:89

Whether the button is disabled.


optional loading: boolean

Defined in: packages/ui/src/types.ts:91

Whether the button is in a loading state.


optional onClick: () => void

Defined in: packages/ui/src/types.ts:87

Click handler.

void


optional size: "sm" | "md" | "lg"

Defined in: packages/ui/src/types.ts:97

Size of the button.


optional startDecorator: ReactNode

Defined in: packages/ui/src/types.ts:101

Element rendered before the button label.


optional type: "button" | "submit"

Defined in: packages/ui/src/types.ts:99

HTML button type attribute.


optional variant: "solid" | "soft" | "outlined" | "plain"

Defined in: packages/ui/src/types.ts:93

Visual style variant.