COMPONENTS

Button [Close]

A dedicated dismiss trigger for modals, drawers, alerts, toasts, and overlays. The Close Button gives every dismissible surface a consistent exit point, with 2 variants, 4 appearance styles, and 6 sizes, ready in Figma and React.

Last Update:
JUN 01, 2026
Button [Close]

Overview

The Close Button is a purpose-built dismiss trigger used across modals, drawers, alerts, toasts, and overlays. Instead of repurposing a generic icon button, it gives every dismissible surface a consistent, recognizable exit point, with 2 semantic variants, 4 appearance styles, and 6 sizes.

Figma Preview

Preview in Figma

When should you use them?

Use a close button on any surface a user needs to dismiss: a modal, drawer, alert, toast, or overlay. A dedicated close control signals clearly that the element can be closed, instead of leaving users guessing whether a generic icon will work.

How should you use them?

  • Use the close button only for dismissing, not for other actions like cancel or back.
  • Place it in a consistent position (typically top-right) so users always know where to find it.
  • Match the appearance to the surface: Ghost or Soft on light cards, Inverse on dark overlays.
  • Pick the size to fit the container: XS for inline alerts, 2XL for full-screen overlays.
  • Give it an accessible label like 'Close dialog', since it's an icon-only control.
  • Keep it keyboard-focusable, and allow Escape to dismiss where appropriate.
Create UI
PRE-SALE · 70% OFF · LIMITED TIME

Stop deciding.
Start shipping.

The system is ready. Free to start, or get full access
at 70% off before the price goes up at launch.

Start Free Now.
Upgrade Through Pre-sale.