Skip to content
Forms

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">

Skip AnimatedCheckboxProps props table
PropTypeDefaultDescription
ref
Ref<HTMLLabelElement>
title
string"Implement Checkbox"Visible label drawn next to the box.
defaultChecked
booleanfalseInitial checked state for uncontrolled usage.
checked
booleanControlled checked state. Pair with `onCheckedChange`.
onCheckedChange
(checked: boolean) => voidCalled with the next checked value whenever the control toggles.