Modal
Display popup content that requires attention or provides additional information.
Import
import { Modal } from 'raw-ui';
Default
Not close modal on overlay click
API
Modal
| Prop | Description | Type | Default |
|---|
| visible | open or close (controlled) | boolean | false |
| closeOnOverlayClick | whether or not close on overlay click | boolean | false |
| width | modal width | string | '540px' |
| onClose | close event handler | () => void | - |
| ... | native props | React.HTMLAttributes | - |
| Prop | Description | Type | Default |
|---|
| ... | native props | React.HTMLAttributes | - |
Modal.Body
| Prop | Description | Type | Default |
|---|
| ... | native props | React.HTMLAttributes | - |
| Prop | Description | Type | Default |
|---|
| ... | native props | React.HTMLAttributes | - |