react-switch-tis
v1.0.5
Published
>
Downloads
5
Readme
react-switch-tis
Install
npm i react-switch-tis
or
yarn add react-switch-tis
Usage
import React from 'react';
import { Switch, labelPosition } from 'react-switch-tis';
import 'react-switch-tis/dist/index.css';
const App = () => {
return (
<Switch
className='Switch'
onChange={(e, checked) => console.log(checked)}
label='Wi-Fi'
color='#0085fe'
small={true}
labelPosition={labelPosition.start}
checked={false}
darkMode={false}
/>
);
};
export default App;
License
MIT © boof-tech