@ciceksepeti/cui-checkbox
v0.0.21
Published
ÇiçekSepeti Checkbox Component
Downloads
331
Readme
@ciceksepeti/cui-checkbox
Tri-state checkbox component, checked, unchecked, partially checked.
Installing
Using Npm:
$ npm install @ciceksepeti/cui-checkbox
Using Yarn:
$ yarn add @ciceksepeti/cui-checkbox
Example
import React, { useState } from "react";
import Checkbox from "@ciceksepeti/cui-checkbox";
import '@ciceksepeti/cui-checkbox/styles.css";
function Demo(props) {
const [checked, setChecked] = useState(false);
return (
<Checkbox
checked={checked}
onChange={(event) => setChecked(event.target.checked)}
/>
);
}