1234567891011121314151617 |
- import React from 'react'
-
- require('./BtnSwitch.styl')
-
- export const BtnSwitch = props =>
- <div className='btnswitch'>
- <label className='switch nomarginlabel'>
- <input type='checkbox' checked={props.checked} onChange={props.onChange} />
- <span className='slider round' />
- </label>
- <div className='btnswitch__text'>
- { props.checked ? 'active' : 'inactive' }
- </div>
- </div>
-
- export default BtnSwitch
|