Actions

Close Button

A close button marked with ×. It carries a label for screen readers.

ReactVueWeb Components
View in Storybook

Playground

Examples

<CloseButton onClick={dismiss} label="Dismiss notification" />

Props

Name Type Default Description
label string Close Accessible label for the dismiss action. @default 'Close'

Accessibility

  • Body/background contrast is ≥ 7:1 (AAA) in both light and dark.
  • Every interaction works with the keyboard alone.
  • The focus ring is always visible.
  • Respects prefers-reduced-motion and stops excessive motion.

Every component is designed to meet WCAG 2.1 AAA.