Back to Component Library
feedback React 19 + TypeScript
Modal
Overlay dialog box for user confirmations, forms, and alerts with smooth entrance animations.
$npx forgeui add modal
Variant:
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| isOpen | boolean | false | Modal visibility state. |
| onClose | () => void | undefined | Close request handler. |
| title | string | undefined | Modal header title. |
Accessibility Standards
Traps keyboard focus, closes on ESC key, role='dialog'.