Skip to content

Close button

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