Skip to main content

Modal

This is the <Modal /> component

Basic Modal

Color scheme:

Component API

NameTypeDefaultDescription
colorSchemedark / lightdarkModal color scheme
childrenReactNode-Modal content
classNamestring-Used to pass className down to the Modal for a better styling
onClose() => void-Close event, used by the modal elements (backdrop, close button)
hideCloseButtonboolean-Toggle prop to hide close button of the modal.