Components / component

Draw Checkbox

v1.0.0 · premium

A checkbox that springs and draws its check mark with a stroke when checked.

Draw Checkbox demo

Implementation

A checkbox that springs and draws its check mark with a stroke when checked.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CheckboxDraw({ label, ink, paper, className, ...input }: Omit<InputHTMLAttributes<HTMLInputElement>, 'ty
  /** Visible label. It is the accessible name. */
  label: string;

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A checkbox that springs and draws its check mark with a stroke when checked.

Frequently asked questions

Is it still a real checkbox?

Yes. The input stays in the page but is hidden visually, so keyboard, assistive technology and focus work as usual.

Does it submit with forms?

Yes. Give it a name and it submits like any checkbox.