Button
Variants
Sizes
Pill
Disabled
Loading
Disclosure
Renderless
Examples
Arguments
Name | Description | Type | Default Value |
---|---|---|---|
@isDisabled | Indicate if the button is disabled. | boolean | false |
@isDisclosure | Indicate if the button discloses content. | boolean | false |
@isLoading | Indicate if the button should display 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" |