Foundations
Components
- Accordion
- Alert Dialog
- Avatar
- Badge
- Banner
- BreadcrumbSOON
- Button
- Button Group
- Calendar
- Callout
- Card
- Checkbox
- CodeblockSOON
- Color Picker
- Container
- Control Group
- Dialog
- Dropdown
- File Uploader
- FlexBox
- FormSOON
- Grid View
- IconSOON
- ImageSOON
- Input
- Link
- List
- MenuSOON
- PaginationSOON
- Popover
- Progress
- Radio
- Section
- Select
- Separator
- Skeleton
- SliderSOON
- SpinnerSOON
- Switch
- Table
- Tabs
- Tag
- Textarea
- ToastSOON
- Tooltip
Dialog
A modal dialog that interrupts the user with important content and expects a response.Example
API Reference
| Component | Description |
|---|---|
| Dialog | A modal dialog that interrupts the user with important content and expects a response. |
| Dialog.Trigger | The button that opens the dialog. Can be customized with button props. |
| Dialog.Content | The content of the dialog, including optional title, body, and footer. |
Component Properties
Dialog
| Prop | Type | Default | Description |
|---|---|---|---|
| overlay | boolean | true | Whether to show the overlay behind the dialog. |
Dialog.Content
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | - | The title displayed in the dialog header. |
| footer | ReactNode | - | Content to be displayed in the dialog footer. |
| barebone | boolean | false | When true, renders without header and footer for custom content. |
| showCloseButton | boolean | true | Whether to show the close button in the header. |