# `` Creates overlay over whole page. ## Usage ```jsx import {Overlay} from 'libreact/lib/Overlay'; This is rendered over the whole page. ``` ## Props - `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.