Overlay component for react.
Overlay is rendered to cover positioned element (css position not static)
<Overlay
show={this.state.overlay}
style={{zIndex: 99, backgroundColor: 'rgba(0,0,0,0.2)'}}
delay={200}/>
name | type | default | description |
---|---|---|---|
show | boolean | false | show the overlay if true |
deplay | number | 0 | delay in milisecond for show element |
You can also have className
and style
applied to underneath overlay element.
MIT