PromptDialog
Prompt modal for user text input. Animated with Framer Motion, supports Enter to submit and Escape to cancel.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| isOpen* | boolean | — | Whether the dialog is open |
| title* | string | — | Dialog title |
| placeholder | string | — | Input placeholder |
| defaultValue | string | — | Default input value |
| confirmText | string | "OK" | Confirm button text |
| cancelText | string | "Cancel" | Cancel button text |
| onConfirm* | (value: string) => void | — | Called with input value on confirm |
| onCancel* | () => void | — | Called on cancel |