0.8.0 • Published 4 years ago
@bdt-component-library/modal v0.8.0
Modal Component
About
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Description
Handles display of modals according to style guide conventions.
API
| prop | type | required | default | explanation | 
|---|---|---|---|---|
| children | any | yes | n/a | Renders the modal description | 
| open | boolean | yes | false | Determines open state of modal | 
| closeOnBackdropClick | boolean | no | true | Determines if the modal closes on clicking outside the modal | 
| title | string | no | undefined | Modal title | 
| width | number | no | undefined | Determines modal width | 
| close | function | yes | () => {} | Handler for the onclick event on close button | 
| hasBodyScroll | boolean | no | false | Determines wether scroll behavior occurs in the body section with a max height on the whole modal, or on the whole modal container (default) | 
| cta | React node | no | no | Optional "call to action" | 
| zIndex | number | no | 1000 | Determines z-index style for the modal (as well as backdrop at zIndex - 1) | 
0.7.6
4 years ago
0.7.5
4 years ago
0.8.0
4 years ago
0.7.4
4 years ago
0.7.2
4 years ago
0.7.3
4 years ago
0.7.1
4 years ago
0.5.3
4 years ago
0.7.0
4 years ago
0.6.0
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago