Button

The Button component is used to trigger actions.

Usage

Default Button

<Button>Primary</Button>

Props

Sortable data table
PropTypeDefaultDescription
childrenReactNode-Button label or node content.
iconReactNode-Optional icon component displayed in the button.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme color of the button.
state"" | "success" | "error" | "warning"-Visual state indicator (success, warning, error, etc).
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultSize of the button.
rounding"none" | "small" | "medium" | "large"Configured DefaultRounding of the button corners.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultButton shadow style.
outlinebooleanfalseIf true, renders the button with an outline style.
onClick(event: React.MouseEvent<HTMLButtonElement>) => void-Click event handler.
classNamestring-Additional CSS class(es) for custom styling.
disabledbooleanfalseIf true, disables the button.
loadingbooleanfalseIf true, shows a loading spinner and disables interaction.
fullWidthbooleanfalseIf true, button stretches to 100% width of its container.
hrefstring-If provided, renders the button as a link with this URL.
isExternalbooleanfalseIf true, external link opens in a new tab (used with href).
type"button" | "submit" | "reset""button"Button type (button, submit, reset).
ariaLabelstring-Custom ARIA label for accessibility.
data-testidstring"button"Custom test ID for unit/integration tests.