Circle Chevron Down

An animated circle-chevron-down icon that renders a circle outline with a downward chevron which bounces down briefly on hover or when controlled via ref. Built with motion/react and forwardRef, it exposes startAnimation and stopAnimation imperative handle methods.

Circle Chevron Down
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 https://lucide-animated.com/r/circle-chevron-down.json

Usage

usage.tsx
import { CircleChevronDownIcon } from "@/components/ui/circle-chevron-down";export default function Example() {  return <CircleChevronDownIcon />;}
  • Showing a disclosure or expand control where the chevron should hint that content opens below
  • Adding a subtle hover micro-interaction to dropdown triggers or accordion headers
  • Triggering a bounce cue programmatically (e.g. to draw attention to a scroll-down affordance) via ref
  • Building an icon-driven navigation or menu that needs a lightweight animated downward indicator

Examples

Accordion-style trigger with hover animation

Uses the default hover behavior inside a button-like container to animate the chevron when the user hovers.

accordion-style-trigger-with-hover-animation.tsx
import { CircleChevronDownIcon } from "@/components/ui/circle-chevron-down";export default function AccordionTrigger() {  return (    <button type="button" className="flex items-center gap-2 text-sm font-medium">      <span>Show details</span>      <CircleChevronDownIcon size={20} className="text-zinc-600" />    </button>  );}

Programmatic animation via ref

Calling startAnimation on the ref plays the bounce, and stopAnimation returns the chevron to its resting position. Because a ref is attached, hover handlers are delegated to the caller through onMouseEnter and onMouseLeave.

programmatic-animation-via-ref.tsx
import { useRef } from "react";import { CircleChevronDownIcon, type CircleChevronDownIconHandle } from "@/components/ui/circle-chevron-down";export default function ScrollHint() {  const iconRef = useRef<CircleChevronDownIconHandle>(null);  return (    <div      onMouseEnter={() => iconRef.current?.startAnimation()}      onMouseLeave={() => iconRef.current?.stopAnimation()}      className="inline-flex cursor-pointer text-blue-600"    >      <CircleChevronDownIcon ref={iconRef} size={32} />    </div>  );}

Icon inside a primary button

Places the icon next to a label inside a styled button, sizing it to match the text.

icon-inside-a-primary-button.tsx
import { CircleChevronDownIcon } from "@/components/ui/circle-chevron-down";export default function MoreButton() {  return (    <button type="button" className="inline-flex items-center gap-1.5 rounded-md bg-black px-3 py-2 text-white">      More      <CircleChevronDownIcon size={16} />    </button>  );}

API reference

PropTypeDefaultDescription
sizenumber28Width and height of the SVG in pixels.
classNamestring—Class names applied to the wrapping div (use text-* classes to change the stroke color via currentColor).
onMouseEnter(e: React.MouseEvent<HTMLDivElement>) => void—Called on mouse enter. When the ref handle is attached, the internal hover animation is disabled and this handler is invoked instead.
onMouseLeave(e: React.MouseEvent<HTMLDivElement>) => void—Called on mouse leave. When the ref handle is attached, the internal hover animation is disabled and this handler is invoked instead.
refReact.Ref<CircleChevronDownIconHandle>—Exposes startAnimation() and stopAnimation() to play or reset the chevron bounce imperatively.
...propsHTMLAttributes<HTMLDivElement>—All other standard div attributes are spread onto the wrapping div.

Accessibility

  • The icon is a decorative SVG with no role, title, or aria-label; if it conveys meaning, add aria-label or a visually hidden label to the parent button.
  • When used as a disclosure trigger, place it inside a button element and control aria-expanded on that button rather than on the icon.
  • Animation is a short 0.5s bounce; users who prefer reduced motion may want to disable hover animation by wrapping usage with a media query check.
  • Because the wrapper is a div, avoid placing it alone as an interactive target; keep it inside a focusable element with a keyboard-accessible handler.

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 Chevron Down" component (lucide-animated/circle-chevron-down) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/circle-chevron-down.json2. 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, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { CircleChevronDownIcon } from "@/components/ui/circle-chevron-down";export default function Example() {  return <CircleChevronDownIcon />;}```

Files & dependencies

  • circle-chevron-down.tsx
dependenciesmotion

Looks similar, elsewhere