Skip to content
Forms

CheckboxBloom

A real checkbox that fills from the centre, draws its tick and throws a ring of petals when ticked.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
labelstring—Text next to the box.
hintstring—Small text under the label.
checkedboolean—Ticked or not (controlled).
defaultCheckedbooleanfalseTicked or not at start (uncontrolled).
onChange(checked: boolean) => void—Called with the new state.
accentstring"#a78bfa"Box and petal colour.
petalsnumber8How many petals burst out.
classNamestring"w-full max-w-xs"Wrapper look.
...restinput props—name, disabled, required and so on go to the input.