A collection of aesthetically pleasing, accessible and customizable toggles build with React.
npm install react-input-toggle
import Toggle from 'react-input-toggle';
import 'react-input-toggle/dist/react-input-toggle.css';
export default class App extends Component {
render () {
return (
<div>
<h1>Hello, world.</h1>
<Toggle label={'Test Label'} effect={'sierra'} labelPosition={'left'} />
</div>
);
}
}
MIT