ObjectModal
A beautiful, centered, medium modal with all you need to structure its content.

Usage

1
import ObjectModal from 'components/ObjectModal/ObjectModal.js';
Copied!
1
<ObjectModal
2
title={
3
<ObjectModalTitle>
4
My awesome title !
5
</ObjectModalTitle>
6
}
7
onClose={() => myComponent.closeSomething()}
8
disabled
9
footer={
10
<Button>
11
Definitly not usefull
12
</Button>
13
}
14
>
15
<FirstChild />
16
<span>Some text</span>
17
</ObjectModal>
Copied!

Props

name
Description
Type
Default
disabled
Disable scrollbar X axis (need to rename for a better clarity)
Boolean
false
footer
Define a footer component
ReactNode
null
onClose
Add close icon in the component, waiting for a function
Function
null
title
Define a title component
ReactNode
null

Preview

Modal example with task editor
Last modified 1yr ago
Copy link
Contents