Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 834 Bytes

IconToggle

See the demo component here

Usage

Below, an example of using the IconToggle component:

import { IconToggle } from 'mdwrapper';

const Demo = () => (
  <IconToggle
    fontOff={'brightness_low'}
    fontOn={'brightness_high'}
    labelOff={'Inactive'}
    labelOn={'Active'}
    onClick={() => console.log('Demo')} />
);

Props

List of all properties for the IconToggle component:

Prop Type Default Description
disabled boolean false Available State
fontOff string 'star_border' Material Design Icon Font Off
fontOn string 'star' Material Design Icon Font On
labelOff string 'Off' Label Off
labelOn string 'On' Label On
onClick function void Click Trigger
You can’t perform that action at this time.