@politiet/pds-checkbox
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published
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>;

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

Last publish

Collaborators

  • digitalcop
  • ninhdo
  • espen.geitsund