ModalHeader
Overlays

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

TSX
import { ModalHeader } from "@solarius/onset";

Props

ModalHeaderProps props
PropTypeDefaultDescription
childrenReactNode—Modal title (the header renders its children as the title).
subReactNode—Dim sub-label after the title.
onClose() => void—Renders the close button.

Example

ModalHeader