0.8.0 • Published 3 years ago

@bdt-component-library/modal v0.8.0

Weekly downloads
93
License
MIT
Repository
github
Last release
3 years ago

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

proptyperequireddefaultexplanation
childrenanyyesn/aRenders the modal description
openbooleanyesfalseDetermines open state of modal
closeOnBackdropClickbooleannotrueDetermines if the modal closes on clicking outside the modal
titlestringnoundefinedModal title
widthnumbernoundefinedDetermines modal width
closefunctionyes() => {}Handler for the onclick event on close button
hasBodyScrollbooleannofalseDetermines wether scroll behavior occurs in the body section with a max height on the whole modal, or on the whole modal container (default)
ctaReact nodenonoOptional "call to action"
zIndexnumberno1000Determines z-index style for the modal (as well as backdrop at zIndex - 1)
0.7.6

3 years ago

0.7.5

3 years ago

0.8.0

3 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

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago