ModalHeader
Add a title and close control to the header of a Modal.
ModalHeader places a title and optional close action before the content of a Modal.
Import
import { ModalHeader } from "@solarius/onset";Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Modal title (the header renders its children as the title). |
sub | ReactNode | — | Dim sub-label after the title. |
onClose | () => void | — | Renders the close button. |