components / checkbox

checkbox.

square checkbox with a check-on-fill. wraps a native checkbox so it works in forms; thin border, no corners, fills white with a black check when checked.

installation
bunx @justin06lee/chrome@latest add checkbox
props
nametypedefaultdescription
labelReactNode-text rendered beside the box.
checkedboolean-controlled checked state.
defaultCheckedboolean-uncontrolled initial state.
onChange(e: ChangeEvent<HTMLInputElement>) => void-
disabledbooleanfalse
wrapperClassNamestring-classes for the outer <label>.