Modal
#
A pop up Modal#
UsageA modal displays content that temporarily blocks interactions with the main view of a site
#
PropsProp | Description | Options / Example |
---|---|---|
children | Contents of the modal. | node |
footer | Footer of the modal. | node |
header | Header of the modal. | node |
width | Width of the modal. | oneOf '10%' '20%' '30%' '40%' '50%' '60%' '70%' '80%' '90%' '100%' '10vw' '20vw' '30vw' '40vw' '50vw' '60vw' '70vw' '80vw' '90vw' '10vw' |
zIndex | zIndex of the modal. | string |
isShowing | Is the modal showing. | bool |
onOutsideClick | Function to execute when user clicks outside the sidebar | function |
#
Sample Syntax#
Modal configuration#
Example#
Simple ModalRender a simple Modal
#
Modal with outsideClickRender a Modal with outsideCLick functionality