Skip to main content
A button component that can be used to trigger actions.

Import

Basic Usage

Key Features

  • Accessible button with proper ARIA attributes
  • Supports disabled state
  • Customizable focus behavior when disabled
  • Can be rendered as a native button or custom element

Key Props

disabled

Type: boolean Default: false Whether the button should ignore user interaction.

focusableWhenDisabled

Type: boolean Default: false Whether the button should be focusable when disabled.

render

Type: (props: ButtonState) => React.ReactElement Custom render function for complete control over rendering.

Styling

Common Patterns

Primary and Secondary Buttons

Loading State