Modal
<Modal title="Title" buttonText='Open Modal'>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</Modal>
Styling
Modals support markdown in the body, but you need to leave whitespace between the text and the modal tags.
<Modal title="Title" buttonText='Open Modal'>
**bold** and _italic_ text is supported.
</Modal>
Including Components
You can include components inside a Modal, like charts or tables:
<Modal title='Chart Example' buttonText='Click to See Chart'>
<LineChart
data={orders_by_month}
x=order_month
y=sales_usd0k
/>
</Modal>
Options
Required
The text displayed on the button that triggers the modal.
- Options:
- string
The title of the modal. Visible at the top of the modal when it is open
- Options:
- string