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