Dialog
A confirm dialog that rises 8px into place.
$149 once · every Pro piece
Customize
default
danger
When it must be answered, Escape and a scrim click are refused: the panel bumps and its fill lifts once. Under 480px it becomes a bottom sheet with stacked buttons.
Install
npx shadcn@latest add @obsyde/dialogNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Dialog } from '@/components/obsyde/ember/dialog/Dialog';
export function Example() {
return (
<Dialog
title="Discard changes?"
description="Anything you have not saved will be lost."
/>
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/dialog/Dialog.tsxcomponentember/dialog/dialog.cssstylesember/dialog/DialogDemo.tsxdemoember/overlays-kit/demo.csssharedember/overlays-kit/kit.tssharedember/shared/spring.tssharedember/shared/accent.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
titleTitle | string | 'Discard changes?' |
descriptionDescription | string | 'Anything you have not saved…' |
confirmLabelConfirm label | string | 'Discard' |
cancelLabelCancel label | string | 'Cancel' |
toneTone | 'default' | 'danger' | 'default' |
dismissibleDismissible | boolean | true |