Animated Checkbox
Checkbox with a spring check mark and a strike-through label.
Import
tsx
import { AnimatedCheckbox } from "@cronus-ui/ui";
bash
npx cronus-ui add animated-checkbox
Examples
API Reference
Generated from the component's exported types.
AnimatedCheckboxProps
Extends Omit<ComponentPropsWithoutRef<"input">, "type" | "onChange" | "title" | "size">
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLLabelElement> | — | — |
title | string | "Implement Checkbox" | Visible label drawn next to the box. |
defaultChecked | boolean | false | Initial checked state for uncontrolled usage. |
checked | boolean | — | Controlled checked state. Pair with `onCheckedChange`. |
onCheckedChange | (checked: boolean) => void | — | Called with the next checked value whenever the control toggles. |