Checkbox
Better looking alternative to native HTML checkbox
Basic usage
import { Checkbox as CheckboxView, useCheckbox } from '@atlasgroup/react-atlantic';const Checkbox = wrap(CheckboxView, useCheckbox);
Checkbox
must be wrapped withuseCheckbox
to make the element interactive. But be awareuseCheckbox
hook provides basic checkbox logic only such as handlingisChecked
prop, for more info see known bugs section
Sizes
Other props
Text positions
Known bugs
useCheckbox
hook does not handle correctlyisPartiallyChecked
propuseCheckbox
hook does not pass props (e.g.size
,horizontalPosition
, ...)CheckboxView
can not haveisPartiallyChecked
andisChecked
prop at the same time