Component libraryDialog
Dialog
ProA modal with a title, form and focus management.
npx shadcn@latest add @tidal-pro/dialogInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/dialog.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled open, onOpenChange, title, description and children required. Optional single focusable trigger element, footer, theme and className (content). Radix traps focus, closes on Escape and returns focus to trigger. Pass theme for portal palette. Consumer owns form/action behavior.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.