Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 531 Bytes

Dimmer.md

File metadata and controls

24 lines (16 loc) · 531 Bytes

<Dimmer>

Dims or create an overlay over its parent element.

Usage

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

<div style={{width: 500, height: 300, border: '1px solid tomato'}}>
  Inline...
  <Dimmer>
    Children...
  </Dimmer>
</div>

Props

  • color — optional, string, overlay color, defaults to rgba(0,0,0,0.5).
  • ms — optional, number, background color appearance animation time in milliseconds, defaults to 300.
  • hidden — optional, boolean, whther to hide dim overlay.