import { useState } from "react";
const [value, setValue] = useState(false);
<div
style={{
display: "flex",
flexDirection: "column",
}}
>
<Checkbox
name="unchecked"
id="unchecked"
label={"Example - Unchecked"}
checked={false}
onChange={() => {}}
/>
<Checkbox
name="checked"
id="checked"
label={"Example - Checked"}
checked={true}
onChange={() => {}}
/>
<Checkbox
name="example"
id="example"
label={"Example - Interactive"}
checked={value}
onChange={() => setValue(!value)}
/>
</div>;
@politiet/pds-checkbox![This package contains built-in TypeScript declarations TypeScript icon, indicating that this package has built-in type declarations](https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg)
0.2.0 • Public • Published Package Sidebar
Install
npm i @politiet/pds-checkbox
Weekly Downloads
1
Version
0.2.0
License
ISC
Unpacked Size
4.28 kB
Total Files
9