Component
Dialog
Displays modal content in a focus-trapped overlay.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/dialogExamples
Live previews render through the docs app's PandaCSS codegen.
<Dialog.Root> <Dialog.Trigger>Open dialog</Dialog.Trigger> <Dialog.Content> <Dialog.Title>Confirm changes</Dialog.Title> </Dialog.Content> </Dialog.Root>
<Dialog.Root> <Dialog.Trigger>Settings</Dialog.Trigger> <Dialog.Content> <Dialog.Header> <Dialog.Title>Settings</Dialog.Title> <Dialog.Description>Manage your preferences.</Dialog.Description> </Dialog.Header> <Dialog.Footer> <Dialog.Close>Cancel</Dialog.Close> </Dialog.Footer> </Dialog.Content> </Dialog.Root>
Props
Public component props extracted from the source TypeScript types.
No component-specific props are documented yet — the component accepts the underlying element's standard props.
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
No recipe variants are documented for this component.
Registry
Files this component contributes to your registry install.
- Manifest: `/r/dialog.json`
- Recipe: `dialog`
- Files: `src/components/ui/dialog.tsx`