react-toggle-knob
v1.0.0
Published
A lightweight toggle with floating options number.
Downloads
3
Maintainers
Readme
A lightweight toggle with floating options number.
Install
npm install react-toggle-knob
Getting Started
import Toggle, {Knob} from "react-toggle-knob";
<Toggle onChange={value => console.log(value)}>
<Knob value="not-completed">Not completed</Knob>
<Knob value="completed">Completed</Knob>
<Knob value="disabled" isDisabled>
Disabled
</Knob>
<Knob value="all">All</Knob>
</Toggle>