DrawCheckbox

A checkbox whose checkmark draws itself (path length animation) and settles with a tiny overshoot. The box scales from 0.9 -> 1.04 -> 1.0 for a tactile snap feel.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/draw-checkbox

API Reference

PropTypeDefaultDescription
labelReact.ReactNodeundefinedLabel text displayed next to the box
descriptionstringundefinedHelper text below the label
indeterminatebooleanfalseWhen true, renders a horizontal bar instead of a checkmark
checkedbooleanundefinedControlled checked state
defaultCheckedbooleanfalseInitial checked state (uncontrolled)
disabledbooleanfalsePrevents interaction