43 Pro components and page blocks

Get Pro

Dialog

Preview

Customize

Medium

Usage

import { Dialog } from "@/components/uibrik/dialog/dialog";

<Dialog title={title} />

Installation

npx shadcn@latest add https://uibrik.com/r/dialog.json
Adds the files to components/uibrik/dialog and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/dialog.

Props

Dialog
size
Type "sm" | "md" | "lg"
"md"
Maximum width of the panel.
dismissible
Type boolean
true
Close on Escape and backdrop click.
blur
Type boolean
true
Blur the page behind the backdrop.
trigger
Type ReactNode
–
The button that opens the dialog. Leave out when controlled.
titlerequired
Type ReactNode
–
Heading, also the dialog's accessible name.
description
Type ReactNode
–
A line under the title.
children
Type ReactNode | (close) => ReactNode
–
The body.
footer
Type ReactNode | (close) => ReactNode
–
Buttons along the bottom. dialogButton has matching styles.
open / onOpenChange
Type boolean / (open) => void
–
Controlled open state.
className
Type string
–
Classes for the panel.