Dialog

A centered modal over a blurred scrim.

Install

npx shadcn add @clearly/dialog

Preview

Live Dialog component — see usage below.

Usage

import { Dialog } from "@/components/ui/dialog"

<Dialog />

Every Clearly component also accepts glass (subtle·medium·strong), specular and className.

Props

PropTypeDefaultDescription
openbooleanControlled open state.
onOpenChange(open: boolean) => voidOpen-state callback.
glass"Subtle" | "Medium" | "Strong""Medium"Glass depth of the dialog content.
specularbooleantrueDirectional specular highlight on the content panel.
radiusnumber24Corner radius of the content panel in px.
showCloseButtonbooleantrueShow the × close button inside the content.