Wrapper
The Modal component wrapper.
This is a compound component.
API
This component extends the native <div>
API. That's why the className
prop is not included in the table.
Props
Type
Required
children
ReactNode
✅
isOpen
boolean
maxWidth
string
height
string
onClose
() => void;
position
'top' | 'center'
Last updated