Skip to content

rc-component/overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overlay Component

Overlay component for react.

Overlay is rendered to cover positioned element (css position not static)

Story book

Usage

<Overlay
  show={this.state.overlay}
  style={{zIndex: 99, backgroundColor: 'rgba(0,0,0,0.2)'}}
  delay={200}/>

Props

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.

License

MIT