Button

The Button component is used to trigger actions.

Usage & Examples

Default Button

default-button.tsx
<Button>Primary</Button>

Props API

40 props
Columns
Button props API
Default
Description
aria-atomicbooleanNoariaWhether assistive technologies should treat live updates as atomic.
aria-busybooleanNoariaIndicates whether the element is busy. Usually derived automatically from `loading`.
aria-controlsstringNoariaIdentifies the element controlled by this button, such as a menu, dialog, accordion panel, or disclosure region.
aria-currentboolean | "page" | "step" | "location" | "date" | "time"NoariaIndicates that this button represents the current item within a set. Most useful when rendering as a link-like control.
aria-describedbystringNoariaReferences the element(s) that describe this button. Useful for extra instructions or status messaging.
aria-disabledbooleanNoariaIndicates whether the control is perceivable as disabled to assistive tech. Usually derived automatically when rendered as a disabled link.
aria-expandedbooleanNoariaIndicates whether the controlled element is expanded or collapsed. Commonly used for disclosure buttons.
aria-haspopupboolean | "dialog" | "grid" | "listbox" | "menu" | "tree"NoariaIndicates that activating the button opens a popup such as a menu, dialog, listbox, tree, or grid.
aria-labelstringNoariaAccessible label for screen readers. Required for icon-only buttons.
aria-labelledbystringNoariaReferences the element(s) that label this button. Useful when the visible label lives outside the button.
aria-live"off" | "polite" | "assertive"NoariaOptional live-region politeness for loading or dynamic content updates.
aria-pressedboolean | "mixed"NoariaIndicates the pressed state for toggle buttons.