0.0.2 • Published 8 months ago

@_ft/checkbox v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Checkbox headless react component

function MyCheckbox() {
  const [checked, setChecked] = useState(true);
  const toggle = useCallback(() => setChecked((b) => !b), [setChecked]);

  return (
    <>
      <Checkbox
        toggle={toggle}
        checked={checked}
        label="Test"
        className="bg-white"
        mergeClasses={twMerge}
        checkedClass="bg-blue-500"
      />
      Test
    </>
  );
}

This checkbox is fully accessible and fully customizable.

If not? then please make a pull request :)

0.0.2

8 months ago

0.0.1

8 months ago

0.0.1-pre3

8 months ago

0.0.1-pre2

8 months ago

0.0.1-pre1

8 months ago