Prompt
This component is currently a Work In Progress (WIP).
The Prompt component is used to display confirmation dialogs or forms. It is controlled via the global application state.
Usage
This component should be placed once at the root of your application (e.g., in layout.tsx). It listens to the global store to display prompts.
To trigger a prompt, use the useStore hook or a helper action.
Props
The Prompt component itself only accepts a className prop. All other configuration is passed via the store state.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes. |
Last updated on