Dialog preview
A modal with a title, form and focus management.
pro · Feedback · primitive
When to use
- Use it when a product interface needs a modal with a title, form and focus management.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose sheet-drawer instead when use the drawer for supporting work that benefits from staying beside the current page.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/dialogImport components/ui/tidal.css, components/ui/dialog.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/dialog.css";
import{TidalDialog}from"./components/ui/dialog";
export default()=><div className="tidal-scope"><TidalDialog children={"value"} description={"Demo"} onOpenChange={() => {}} open={false} title={"Demo"}/></div>;API and props
TidalDialog.children (required)ReactNodeRequired children value accepted by this exported component.
TidalDialog.description (required)stringRequired description value accepted by this exported component.
TidalDialog.onOpenChange (required)(open: boolean) => voidCallback invoked when the open change interaction is proposed.
TidalDialog.open (required)booleanRequired open value accepted by this exported component.
TidalDialog.title (required)stringRequired title value accepted by this exported component.
TidalDialog.classNamestring | undefinedOptional class name value accepted by this exported component.
TidalDialog.footerReactNodeOptional footer value accepted by this exported component.
TidalDialog.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
TidalDialog.triggerReactElement<unknown, string | JSXElementConstructor<any>> | undefinedOptional trigger value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.