ModalFrame
ModalFrame<
C>(__namedParameters):any
Modal overlay component that handles:
- Backdrop click dismiss (optional mode)
- ESC key dismiss (optional mode)
- Focus trap on the dialog
- Visibility + dismissed state management
- Theme-aware default styles
Extend by wrapping and injecting children for custom body content.
Type Parameters
Section titled “Type Parameters”C extends ResolvedContent = ResolvedContent
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”ModalFrameProps<C>
Returns
Section titled “Returns”any
Example
Section titled “Example”function MyModal(props: PlacementSlotProps<MyContent>) { return ( <ModalFrame {...props}> <BenefitsList items={props.content.benefits} /> </ModalFrame> );}