@hixme-ui/toggle
v2.2.0
Published
hixme-ui Toggle component
Downloads
82
Readme
Toggle
Installation
npm i --save @hixme-ui/toggle
Usage
import Toggle from '@hixme-ui/toggle'
<Toggle
checked={this.state.checked}
truthyText='Ya'
falsyText='Nah'
onChange={e => this.handleToggle(e)}
/>
Props
| Name | Type | Default | | --------------- | ----------- | -------------- | | truthyText | string | 'Yes' | | falsyText | string | 'No' | | checked | boolean | undefined | | noLabels | boolean | false | | withIcons | boolean | false |