trigger | ReactNode | - | |
|
render | ReactElement | - | |
|
triggerIcon | ReactNode | - | A glyph beside the trigger's label. |
| A glyph beside the trigger's label. |
triggerIconPosition | leading | trailing | leading | Which end of the trigger triggerIcon sits at. |
Which end of the trigger triggerIcon sits at. |
onTriggerClick | () => void | - | Fires when the trigger is pressed, before the dialog opens, for capturing which row triggered it, say, in a dialog reused across a list. |
| Fires when the trigger is pressed, before the dialog opens, for capturing which row triggered it, say, in a dialog reused across a list. |
open | boolean | - | |
|
onOpenChange | (open: boolean) => void | - | Called whenever it opens or closes, controlled or not. |
| Called whenever it opens or closes, controlled or not. |
header | ReactNode | - | |
|
title | string | - | The dialog's heading, wired up by Base UI's own Dialog.Title. |
| The dialog's heading, wired up by Base UI's own Dialog.Title. |
description | ReactNode | - | The body text, wired up by Base UI's own Dialog.Description. |
| The body text, wired up by Base UI's own Dialog.Description. |
children | ReactNode | - | |
|
cancelLabel | string | Cancel | The dismissing button's label. |
| The dismissing button's label. |
confirmLabel | string | - | |
|
onConfirm | () => void | - | |
|
showClose | boolean | true | The X in the corner. |
| The X in the corner. |
confirmVariant | primary | danger | primary | Color of the confirm button: primary or danger, for a destructive action like a delete. |
Color of the confirm button: primary or danger, for a destructive action like a delete. |
triggerIntent | neutral | danger | neutral | Color: neutral or danger, for a destructive confirmation. |
Color: neutral or danger, for a destructive confirmation. |
size | sm | md | lg | md | Padding and text size of the trigger and the popup's buttons, on the same scale as Button, so a dialog matches the buttons beside it. |
| Padding and text size of the trigger and the popup's buttons, on the same scale as Button, so a dialog matches the buttons beside it. |
shape | none | rounded | pill | rounded | |
|
animated | boolean | true | |
|
className | string | - | |
|
focus | boolean | string | true | |
|
container | HTMLElement | null | - | |
|