Components•Dialog
Components•Dialog
Dialog
A centered modal surface for decisions that require the user's focused attention.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-dialogHow to use
import { BjorkDialog, BjorkDialogTrigger, BjorkDialogContent } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Dialog primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
openbooleanUse with onOpenChange when the modal needs to be controlled from page state.
Confirmation dialog
Use for focused confirmation flows with primary and secondary actions.
<BjorkDialog> <BjorkDialogTrigger asChild><BjorkButton>Open</BjorkButton></BjorkDialogTrigger> <BjorkDialogContent>...</BjorkDialogContent></BjorkDialog>