Button API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
Button8 props0 callbacks0 methods
Props8
| Name | Type | Description |
|---|---|---|
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
sizeOptional | "default" | "compact" | undefined | Visual size of this component; numeric icon/avatar sizes are in pixels, while controls use the declared named sizes. |
targetOptional |
| Browsing context used when a button renders a link, for example _blank. |
roundedOptional | boolean | undefined | Pill-shaped corners for any button variant. |
variantOptional | "link" | "ghost" | "solid" | "default" | "primary" | "secondary" | "danger" | "danger-outline" | undefined | Selects the visual action style without changing the action behavior. |
hrefOptional | string | undefined | Render navigation with native anchor semantics. |
relOptional | string | undefined | Link relationship tokens, such as noopener, when the button has an href. |
busyOptional | boolean | undefined | Show progress and block activation until cleared, preserving variant colors. |
Events and callbacks0
No component-specific events or callbacks.
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.