Close button
The close button is used inside of other components, like a toast or a modal, for closing or dismissing its parent component.
Design
Section titled “ Design” Accessibility
Section titled “ Accessibility”Screen reader support
Section titled “Screen reader support”Set the aria-label HTML attribute to “Close”.
Keyboard navigation
Section titled “Keyboard navigation”When the component is focused, the Enter or Space key executes the button (closes or dismisses the parent component).