Fetching contributors…
Cannot retrieve contributors at this time
23 lines (14 sloc) 577 Bytes


Creates overlay over whole page.


import {Overlay} from 'libreact/lib/Overlay';

  This is rendered over the whole page.


  • color — optional, string, overlay color, defaults to rgba(0, 0, 0, 0.5).
  • time — optional, number, entrance opacity animation length in milliseconds, defaults to 300.
  • onElement — optional, callback that receives the DOM element overlay created.
  • onClick — optional, callback, which is called when user click on overlay but not on its children.