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.
Parameters
Section titled “Parameters”Component props.
children
Section titled “children”ReactNode
Subtree rendered on the modal surface.
Returns
Section titled “Returns”Element
The subtree wrapped in a provider marking it as modal.