0.0.2 • Published 3 years ago
chat-lib-bz v0.0.2
SuiteDash Chat Libary
React / TS / Tailwind CSS / Storybook
Install
npm install chat-lib-bz
Example
import { ToggleSwitch } from 'chat-lib-bz';
import 'chat-lib-bz/dist/tailwind.css';
const App = () => {
const [isToggled, setIsToggled] = React.useState(false);
return (
<div>
<ToggleSwitch
enabled={isToggled}
onChange={(v: boolean) => setIsToggled(v)}
/>
</div>
);
};