.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Modal

Overlay sections to display additional information

The Modal component can be used by importing { Modal } from "finallyreact".

Example

Modal Title
Modal Text
Example

Header Styles

Modal Title
Modal Text
Header Styles

Custom Header

Modal Text
Custom Header

Custom Content

Modal Title

Custom content

Custom Content

Prevent Outside Click

Modal Title

Prevent Outside Click

Prevent Outside Click

Simple

Simple modal title
Simple modal text
Simple

Modal Props

Prop NameProp TypeDescription
cardPropsHTMLAttributesProps for the modal card
closePropsHTMLAttributesProps for the close button
contentPropsHTMLAttributesProps for the modal content
customHeaderReact.ReactNodeCustom header for the modal
headerPropsHTMLAttributesProps for the modal header
onClose() => voidCallback for closing the modal
overlayPropsHTMLAttributesProps for the modal overlay
preventOutsideClickbooleanPrevents closing the modal by clicking outside
showbooleanWhether the modal is shown
simplebooleanSimple modal with no styles
textstringText content for the modal
titlestringTitle for the modal