Skip to content

ModalSurfaceProvider

ModalSurfaceProvider(props): Element

Defined in: packages/react/src/hooks/useModalSurface.tsx:19

Marks everything inside as living on a modal surface.

Applied once by Modal, so any field rendered into a dialog inherits it. Fields are rendered generically by RenderFieldInputComponents, which has no per-field prop channel — context is the only way to tell a select deep in a generated form that it is inside a dialog.

Component props.

ReactNode

Subtree rendered on the modal surface.

Element

The subtree wrapped in a provider marking it as modal.