BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ericts-ui/check-animation

Check Animation

ericts-ui/check-animation
FreeComponent

A pure SVG checkmark animation that draws a square or circle before the check.

Live preview

live · rendered by the registry
Rendered by ericts-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.ericts.com/r/check-animation.json

Source

registry/base/ui/check-animation.tsxui.ericts.com/r/check-animation.json
1import * as React from "react";
2
3import { cn } from "@/lib/utils";
4
5import "./check-animation.css";
6
7export type CheckAnimationVariant = "square" | "circle";
8export type CheckAnimationSize = "sm" | "md" | "lg";
9
10export interface CheckAnimationProps
11 extends Omit<React.ComponentPropsWithoutRef<"span">, "children"> {
12 variant?: CheckAnimationVariant;
13 size?: CheckAnimationSize;
14 /** Accessible label. Omit for a decorative mark. */
15 label?: string;
16 strokeWidth?: number;
17}
18
19const sizeClassNames: Record<CheckAnimationSize, string> = {
20 sm: "size-5",
21 md: "size-6",
22 lg: "size-10",
23};
24
25const DEFAULT_STROKE_WIDTH = 2;
26const VECTOR_EFFECT = "non-scaling-stroke";
27const SQUARE_PATH = "M 50,11.5 L 88.5,11.5 L 88.5,88.5 L 11.5,88.5 L 11.5,11.5 Z";
28const CIRCLE_PATH =
29 "M 88.5,50 C 88.5,71.26 71.26,88.5 50,88.5 C 28.74,88.5 11.5,71.26 11.5,50 C 11.5,28.74 28.74,11.5 50,11.5 C 71.26,11.5 88.5,28.74 88.5,50 Z";
30const CHECK_PATH = "M 32.3,51 L 44,62.9 L 68.75,36.5";
31
32const shapePaths: Record<CheckAnimationVariant, string> = {
33 square: SQUARE_PATH,
34 circle: CIRCLE_PATH,
35};
36
37export function CheckAnimation({
38 variant = "square",
39 size,
40 label,
41 strokeWidth = DEFAULT_STROKE_WIDTH,
42 "aria-label": ariaLabel,
43 "aria-hidden": ariaHidden,
44 className,
45 ...props
46}: CheckAnimationProps) {
47 const accessibleLabel = label ?? ariaLabel;
48
49 return (
50 <span
51 data-slot="check-animation"
52 data-variant={variant}
53 role={accessibleLabel ? "img" : undefined}
54 aria-label={accessibleLabel}
55 aria-hidden={accessibleLabel ? undefined : (ariaHidden ?? true)}
56 className={cn(
57 "check-animation inline-flex shrink-0 items-center justify-center text-foreground",
58 size ? sizeClassNames[size] : "w-full max-w-80",
59 className,
60 )}
61 {...props}
62 >
63 <svg
64 viewBox="0 0 100 100"
65 aria-hidden="true"
66 className={size ? "size-full" : "h-auto w-full"}
67 >
68 <path
69 className="check-animation-shape"
70 d={shapePaths[variant]}
71 fill="none"
72 stroke="currentColor"
73 strokeWidth={strokeWidth}
74 strokeLinecap="round"
75 strokeLinejoin="round"
76 vectorEffect={VECTOR_EFFECT}
77 pathLength="100"
78 strokeDasharray="100 100"
79 strokeDashoffset="100"
80 />
81 <path
82 className="check-animation-checkmark"
83 d={CHECK_PATH}
84 fill="none"
85 stroke="currentColor"
86// … truncated

Files it writes

  • registry/base/ui/check-animation.tsx
  • registry/base/ui/check-animation.css

Facts

Registry
ericts-ui
Type
registry:ui
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

Docs on ericts-ui ui.ericts.com EricTsai83/ericts-ui on GitHub Raw registry item This item as JSON

More from ericts-ui

All 38 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Adaptive Draweradaptive-drawerericts-uiComponentsFree2 deps
Context Cursorcontext-cursorericts-uiComponentsFree1 dep
Copy Buttoncopy-buttonericts-uiComponentsFree2 deps
Expandable Dialogexpandable-modalericts-uiComponentsFree1 dep
Expandable Tabsexpandable-tabsericts-uiComponentsFree1 dep
Expandable Toolbarexpandable-toolbarericts-uiComponentsFree1 dep
Expanding Panelexpanding-panelericts-uiComponentsFree2 deps
Expanding Segmented Tabsexpanding-segmented-tabsericts-uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex