NK

Search

Search pages, posts, and components

All components

Animated Check

Feedback

A circle and checkmark that draw themselves in.

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/animated-check.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/animated-check.tsx

Props

PropTypeDefaultDescription
sizenumber64Width and height in pixels.

Accessibility

  • Decorative by default - pair it with text confirming what succeeded.
  • Uses pathLength, so it scales cleanly at any size.
  • Colour is inherited, so it can be themed by the parent.

Dependencies

motionclsxtailwind-merge