corner-dialog
v4.15.0arrow_drop_downName | Type | Default value | Description |
---|---|---|---|
children (required) | node | function | Children can be a string, node or a function accepting | |
intent | 'none' | 'success' | 'warning' | 'danger' | 'none' | The intent of the CornerDialog. Used for the button. |
isShown | bool | When true, the dialog is shown. | |
title | node | Title of the Dialog. Titles should use Title Case. | |
onCloseComplete | function | Function that will be called when the exit transition is complete. | |
onOpenComplete | function | Function that will be called when the enter transition is complete. | |
hasFooter | bool | true | When true, the footer with the cancel and confirm button is shown. |
onConfirm | function | close => close() | Function that will be called when the confirm button is clicked. This does not close the Dialog. A close function will be passed as a paramater you can use to close the dialog.
|
confirmLabel | string | 'Learn More' | Label of the confirm button. |
hasCancel | bool | true | When true, the cancel button is shown. |
hasClose | bool | true | When true, the close button is shown. |
onCancel | function | close => close() | Function that will be called when the cancel button is clicked. This closes the Dialog by default.
|
cancelLabel | string | 'Close' | Label of the cancel button. |
width | string | number | 392 | Width of the Dialog. |
containerProps | object | Props that are passed to the dialog container. |