1.1.0 • Published 3 years ago
@billogram/use-checkbox v1.1.0
@billogram/use-checkbox
A React hook for checkbox components
Install
yarn add @billogram/use-checkbox
Usage
import useCheckbox from '@billogram/use-checkbox';
See types for exported types.
useCheckbox
const {
handleClick,
handleKeyDown,
} = useCheckbox({
disabled: false,
onChange: noop,
value,
});
Note
This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.
License
MIT