Dialog
The shadcn dialog as a 24px-radius card with a round close button, pill actions and a short scale-and-fade.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { Button } from '@/components/ui/button';import { DialogRounded } from '@/components/component-kit/items/dialog-rounded';
export function Example() { return ( <DialogRounded trigger={<Button>Rename project</Button>} title="Rename project" description="This name appears in the sidebar and on invoices." confirmLabel="Save" onConfirm={() => console.log('saved')} /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
trigger | ReactElement | — | Element that opens the dialog. |
title | ReactNode | — | Dialog heading. |
description | ReactNode | — | Supporting text under the heading. |
onConfirm | () => void | boolean | Promise | — | Confirm handler. Return false to keep the dialog open. |
hideFooter | boolean | false | Omit the default cancel and confirm actions. |