Design guidelines
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the close button will be disabled |
inverse
| |
|---|
| Attribute | inverse |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the close button will have the inverse color theme |
label
| |
|---|
| Attribute | label |
| Type | string |
| Default | 'Close' |
| Required | false |
| Description | The accessible label of the close button |
| Name | Description | Bubbles |
|---|
certaraClick | Event emitted when the close button is clicked | true |
The close button is used inside of other components, like a toast or a modal, for closing or dismissing its parent component.
Set the aria-label HTML attribute to “Close”. Learn about aria-labels.
When the component is focused, the Enter or Space key executes the button (closes or dismisses the parent component).
View component in Figma