Button
Variants
Sizes
Pill
Disabled
Loading
Disclosure
Expanded
Renderless
Examples
Signature
Element
HTMLButtonElement
Blocks
Name | Description | Type |
---|---|---|
:default * | The content of the button. | [{
class: string;
}] |
Arguments
Name | Description | Type | Default Value |
---|---|---|---|
@isDisabled | Indicate if the button is disabled. | boolean | false |
@isDisclosure | Indicate if the button discloses content. | boolean | false |
@isExpanded | Indicate if the button's disclosed content is expanded. | boolean | false |
@isLoading | Indicate if the button should render a loading state. | boolean | false |
@isPill | Indicate if the button is pill shaped. | boolean | false |
@isRenderless | Make the button renderless. | boolean | false |
@onClick | Handle the button's `click` event. | (event: MouseEvent) => void | undefined |
@size | The size of the button. | "xs" | "sm" | "md" | "lg" | "md" |
@type | The type of the button. | "button" | "reset" | "submit" | "button" |
@variant | The appearance of the button. | string | "primary" | "primary" |