Modal
Display a modal dialog box, providing a title and content area.
Examples
Use as a component
Setting component prop to true will apply default styles.
Ignore the internal logic with static property
Use as a composable
Component API
Modal
Prop | Description | Type | Default |
---|---|---|---|
component | If the value is false only children of the main component will be rendered | boolean | false |
isStatic | If true the components becomes a shell and ignores all the internal logic | boolean | false |
isOpen | Whether the modal is visible or not | boolean | false |
title | Title of the modal | string |
|
onClose | Triggers when the modal is closed | function | () => {} |
Modal Button
Prop | Description | Type | Default |
---|---|---|---|
onButtonClick | Triggers when the button is clicked | function | () => {} |