Chánh Đại

Chevrons Up Down Icon

Buttons 4

About

Animated chevrons icon that morphs between up and down directions on trigger.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Chevrons Up Down Icon to your project and fits it to your theme.

Code

How Chevrons Up Down Icon is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import * as React from "react"
import { ChevronsUpDownIcon, type ChevronsUpDownIconHandle } from "@/components/ui/chevrons-up-down-icon"

export default function ChevronsUpDownIconDemo() {
  const iconRef = React.useRef<ChevronsUpDownIconHandle>(null)

  return (
    <div className="flex min-h-52 w-full items-center justify-center">
      <button
        type="button"
        className="flex size-16 items-center justify-center rounded-xl border bg-background text-foreground transition-colors hover:bg-accent hover:text-accent-foreground"
        onMouseEnter={() => iconRef.current?.startAnimation()}
        onMouseLeave={() => iconRef.current?.stopAnimation()}
      >
        <ChevronsUpDownIcon ref={iconRef} className="size-6" />
      </button>
    </div>
  )
}

Dependencies

More by Chánh Đại

View all
  • Apple Hello Effect

    Apple Hello Effect

    664
  • Theme Switcher

    Theme Switcher

    320
  • Hero Golden Spiral

    Hero Golden Spiral

    112
  • Mobius Loop Icon

    Mobius Loop Icon

    82
  • Wheel Picker

    Wheel Picker

    74
  • Glow Card Grid

    Glow Card Grid

    42
  • Testimonial 2

    Testimonial 2

    41
  • Spinning Circular Text

    Spinning Circular Text

    26

More in Buttons

View all
  • Button

    Button

    16
  • Texture Button

    Texture Button

    110
  • Astryx Button Group

    Astryx Button Group

    27
  • Button

    Button

    135
  • Button

    Button

    36
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    9
  • HeroUI Toggle Button

    HeroUI Toggle Button

    2