theVAULT01Explore complete sections
← All components

Dialog

Uses a native modal dialog for focus containment, Escape dismissal, and returning focus to the opener.

A little space to focus.

Make it yours

This is a working modal. Press Escape or use the close button to return to the component.

Use the real component.

The preview uses the same React components and CSS available in the Code view.

  1. Copy Components into src/components/vault/kit.tsx.
  2. Copy Styles into src/styles/vault-kit.module.css.
  3. Import the component using the Usage example. Add Your theme to a parent to carry your colors across.

React + TypeScript + CSS Modules. The import alias @/ points to src/; adjust it for your project.

theVAULT / A Plaibook collection