Close Button

CloseButton can be used to close a container.

Source
Theme Source
  • CloseButton - The true CloseButton component.
pnpm dlx dreamy add close-button

CloseButton is built on top of the Button, so all props of Button are available. Can be used to close any container.

aria-label prop is required for accessibility.

<CloseButton aria-label="Close Modal" />