@hixme-ui/toggle

2.1.0 • Public • Published

Toggle

Installation

npm i --save @hixme-ui/toggle

View it live

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

Package Sidebar

Install

npm i @hixme-ui/toggle

Weekly Downloads

10

Version

2.1.0

License

MIT

Unpacked Size

31.7 kB

Total Files

15

Last publish

Collaborators

  • sureco-devops
  • sureco-engineering
  • dreamingbinary
  • billyxs