Variants (class names)
Sizes
States
API Reference
Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.
Button
A button component that can be used to trigger actions. Renders a <button> element.
Props
disabled boolean false
- Name
disabled- Description
Whether the control ignores user interaction.
- Type
boolean- Default
false
focusableWhenDisabled boolean false
- Description
Whether the control remains focusable when disabled.
- Type
boolean- Default
false
Data attributes
| Attribute | Description |
|---|---|
data-disabled | Present when the button is disabled. |