1.0.3 • Published 4 years ago
@aiui/ai-modal v1.0.3
AiModal
Minimal Modal React Component
Install
npm i @aiui/ai-modalImport
import AiModal from '@aiui/ai-modal';Props
| Name | Type | Default | Description |
|---|---|---|---|
| opened | bool | false | If true, the modal is open |
| title | string | Modal Title | |
| size | string | md | Modal size (sm, md, lg) |
| onClose | func | ( ) => { } | Callback fired when the component requests to be closed |
| onOverlayClick | func | ( ) => { } | Callback fired when the Overlay is Clicked |
| children | node | Modal children, usually the included sub-components | |
| color | string | #ffffff | Modal Color |
| overlayColor | string | #e0e0e0 | Overlay Color |