Overview
Display focused content on top of the UI.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- title?: string — Window label.
- content?: string — Modal content body.
- width?: string | number — Default 70%.
- height?: string | number — Default 60%.
- closable?: boolean — Enables Esc/q handlers.
- onClose?: () => void — Called on close.
- BaseProps: overlay fills screen.
Methods
- setContent(text), setTitle(text), setDimensions(w, h).
- show(), hide(), close().
- setClosable(bool), addKeyHandler(keys, fn), removeKeyHandler(keys).
Keyboard
- Esc, q: close (if closable).
Installation
Import
Quick Start
Production Examples
Best Practices
- Evita modali annidati; preferisci step sequenziali con Stepper o Tabs.
