Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 577 Bytes

Overlay.md

File metadata and controls

22 lines (14 loc) · 577 Bytes

<Overlay>

Creates overlay over whole page.

Usage

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

<Overlay>
  This is rendered over the whole page.
</Overlay>

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.