bloxa

Dialog

FREE

Modal window with sizes, a blurred backdrop, scale in/out motion and a focus trap.

Installation

Terminal
npx @bloxa/cli add dialog
# or: npx shadcn@latest add @bloxa/dialog

Packages installed automatically: motion, radix-ui

Examples

Dialog with a form

Sizes

API reference

Every component also accepts the props of the element it renders.

Dialog

PropTypeDefaultDescription
open / defaultOpenboolean—Controlled or initial open state.
onOpenChange(open) => void—Called when it opens or closes.

DialogContent

Use with DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter and DialogClose.

PropTypeDefaultDescription
size"sm" | "md" | "lg" | "xl" | "full""md"Maximum width.
showClosebooleantrue× button in the corner.
blurbooleantrueBlur the backdrop.