TidalUI

Dialog preview

A modal with a title, form and focus management.

pro · Feedback · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/dialog

Import components/ui/tidal.css, components/ui/dialog.css. Wrap installed components in tidal-scope.

Preview

Dialog component preview

Open interactive 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)
ReactNode

Required children value accepted by this exported component.

TidalDialog.description (required)
string

Required description value accepted by this exported component.

TidalDialog.onOpenChange (required)
(open: boolean) => void

Callback invoked when the open change interaction is proposed.

TidalDialog.open (required)
boolean

Required open value accepted by this exported component.

TidalDialog.title (required)
string

Required title value accepted by this exported component.

TidalDialog.className
string | undefined

Optional class name value accepted by this exported component.

TidalDialog.footer
ReactNode

Optional footer value accepted by this exported component.

TidalDialog.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalDialog.trigger
ReactElement<unknown, string | JSXElementConstructor<any>> | undefined

Optional trigger value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas