circle-check

An animated circle-check icon from the hugeicons-animated registry that draws a check mark inside a ring, with a brief pen-lift flourish and a subtle ring pulse on hover. It is built on motion/react and exposes an imperative handle so parents can trigger the animation.

circle-check
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @hugeicons-animated/circle-check

Requires @hugeicons-animated in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { CircleCheckIcon } from '@/components/icons/circle-check';export function Example() {  return <CircleCheckIcon size={28} className="text-emerald-600" />;}
  • Use as a success, completed, or verified status indicator where a hover-triggered micro-animation adds feedback, such as a task list or onboarding step.
  • Use in feature lists or settings rows where an animated confirmation icon reinforces a checked state on hover.
  • Use when you need a programmatically triggered confirmation animation via a ref (for example, after a form submit succeeds).
  • Avoid in dense tables or repeated lists where constant motion would be distracting, or in contexts where the icon carries meaning without a text label.

Examples

Basic hover animation

Renders the icon with the default size of 28. The animation plays on mouse enter and resets on mouse leave when the icon is uncontrolled.

basic-hover-animation.tsx
import { CircleCheckIcon } from '@/components/icons/circle-check';export function BasicExample() {  return <CircleCheckIcon />;}

Sized and colored status row

Sets a custom size and uses the className prop with Tailwind to color the icon through currentColor.

sized-and-colored-status-row.tsx
import { CircleCheckIcon } from '@/components/icons/circle-check';export function CompletedRow({ label }: { label: string }) {  return (    <div className="flex items-center gap-2">      <CircleCheckIcon size={20} className="text-green-600" />      <span>{label}</span>    </div>  );}

Imperative trigger via ref

Uses the CircleCheckIconHandle ref to start the animation from a button click. Hover handling is disabled while the ref is attached.

imperative-trigger-via-ref.tsx
import { useRef } from 'react';import { CircleCheckIcon } from '@/components/icons/circle-check';import type { CircleCheckIconHandle } from '@/components/icons/circle-check';export function SaveConfirmation() {  const iconRef = useRef<CircleCheckIconHandle>(null);  return (    <div className="flex items-center gap-3">      <CircleCheckIcon ref={iconRef} size={32} className="text-blue-600" />      <button type="button" onClick={() => iconRef.current?.startAnimation()}>        Play confirmation      </button>    </div>  );}

Labeled meaningful icon

When the icon conveys status without adjacent text, pass role and aria-label through the wrapper div props.

labeled-meaningful-icon.tsx
import { CircleCheckIcon } from '@/components/icons/circle-check';export function VerifiedBadge() {  return (    <CircleCheckIcon      role="img"      aria-label="Verified"      size={24}      className="text-sky-500"    />  );}

API reference

PropTypeDefaultDescription
sizenumber28Width and height of the SVG in pixels. The viewBox stays 0 0 24 24, so the icon scales proportionally.
classNamestring—Applied to the outer wrapper div (passed through cn). Use it for color via text-* classes, since strokes use currentColor.
onMouseEnterMouseEventHandler<HTMLDivElement>—Called before the built-in start-animation logic runs on mouse enter. Destructured from HTMLAttributes and forwarded through the hook.
onMouseLeaveMouseEventHandler<HTMLDivElement>—Called before the built-in stop logic runs on mouse leave. The stop logic only has an effect when the hook is configured to loop, which this component does not do.
refRef<CircleCheckIconHandle>—Exposes startAnimation() and stopAnimation() on the component. Attaching a ref disables automatic hover animation for this instance. stopAnimation() is a no-op in this build because looping is off.
...HTMLAttributes<HTMLDivElement>HTMLAttributes<HTMLDivElement>—All other standard div attributes (id, aria-*, role, data-*, style, etc.) are spread onto the wrapper div.

Accessibility

  • The icon is decorative by default: the SVG has no title, role, or aria-label. When it conveys meaning without nearby text, add role="img" and aria-label to the component so the wrapper div is announced.
  • Animation respects prefers-reduced-motion via useReducedMotion; when reduced motion is requested, the animation does not start.
  • Color comes from currentColor, so the icon keeps the text color contrast of its container. Ensure the chosen color meets WCAG contrast against the background.
  • Hover-only animation gives no feedback to keyboard or touch users; do not rely on it alone to communicate state, and repeat the status in text.
  • The wrapper is a div, so avoid placing it inside a button element where it would be invalid HTML; put the icon beside the button label instead.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "circle-check" component (hugeicons-animated/circle-check) from its shadcn registry.1. Install it with: npx shadcn@latest add @hugeicons-animated/circle-check2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: size, className, onMouseEnter, onMouseLeave, ref, ...HTMLAttributes<HTMLDivElement>.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { CircleCheckIcon } from '@/components/icons/circle-check';export function Example() {  return <CircleCheckIcon size={28} className="text-emerald-600" />;}```

Files & dependencies

  • icons/circle-check.tsx
  • lib/use-icon-animation.ts
dependenciesmotion

Looks similar, elsewhere