Welcome to the StepOne components documentation
StepOne Fundation
StepOne Modules
Modal
Modal component is used when we want to render some components inside a dialog.
Modal Props
| Name | Use | Type | Definition |
| wrapperClassName | optional | string | Class name to wrap the whole modal. |
| onClose | optional | function | Function to handle after modal is closed. |
| open | optional | boolean | Prop linked to modal status (open/close). |
| renderAsPortal | optional | boolean | Allows render the modal as portal or not. |
Examples
Modal component as portal.
Modal example rendering as portal (renderAsPortal true).
Modal
Modal component.
Modal example (renderAsPortal false).
Modal