0.3.2 • Published 2 years ago

@essappstate/canopy-react-overlay v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

canopy-react-overlay

Creates a full page overlay modal thingy for AppStateESS/Canopy. The parent class determines its viewable status. Use the close function prop to hide it.

Install

npm install --save-dev @essappstate/canopy-react-overlay

Example

import Overlay from '@essappstate/canopy-react-overlay'

<Overlay
  show={this.state.show}
  close={this.toggleTheShowVariable}
  width="500px"
  title="My Overlay">
  <p>The content goes here.</p>
</Overlay>

Props

NameTypeDesc.
closefunctionRequired. Function to run upon closing overlay
titlestringText to appear in header of overlay
widthstringWidth of content area. The default is 100% width and height. If width is set, the height will be adaptive and the content area will be place near the top of the screen.
showbooleanIf true, show the overlay. False (hidden) by default.
overflowstringBy default, the overflow is auto on the y axis and hidden on the x axis.
childrennodeThe content of the overlay.
0.3.2

2 years ago

0.3.1

3 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

6 years ago