Skip to content

DialogDescription

Open .md
Live preview

Loading example…

DialogDescription is part of the Overlays set, imported from @jcsoftdev/ui/overlays.

import { DialogDescription } from "@jcsoftdev/ui/overlays";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/dialog.

export const Default: Story = {
render: (args) => (
<Dialog>
<DialogTrigger asChild>
<Button variant="danger">Anular cita</Button>
</DialogTrigger>
<DialogContent {...args}>
<CancelBody />
</DialogContent>
</Dialog>
),
};

Source of the Storybook story.

Prop Type Default Description
asChild boolean

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/overlays/dialog/dialog.tsx