BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/animateicons/lu-accessibility

lu-accessibility

animateicons/lu-accessibility
FreeComponent

animateicons publishes no description for this item.

Install it

npx shadcn@latest add https://animateicons.in/r/lu-accessibility.json

Source

accessibility-icon.tsxanimateicons.in/r/lu-accessibility.json
1"use client";
2
3import { cn } from "@/lib/utils";
4import type { Variants } from "motion/react";
5import {
6 LazyMotion,
7 domMin,
8 m,
9 useAnimation,
10 useReducedMotion,
11} from "motion/react";
12import {
13 forwardRef,
14 useCallback,
15 useImperativeHandle,
16 useRef,
17 type HTMLAttributes,
18} from "react";
19export interface AccessibilityIconHandle {
20 startAnimation: () => void;
21 stopAnimation: () => void;
22}
23
24interface AccessibilityIconProps extends Omit<
25 HTMLAttributes<HTMLDivElement>,
26 | "color"
27 | "onDrag"
28 | "onDragStart"
29 | "onDragEnd"
30 | "onAnimationStart"
31 | "onAnimationEnd"
32 | "onAnimationIteration"
33> {
34 size?: number;
35 duration?: number;
36 isAnimated?: boolean;
37 color?: string;
38}
39
40const AccessibilityIcon = forwardRef<
41 AccessibilityIconHandle,
42 AccessibilityIconProps
43>(
44 (
45 {
46 onMouseEnter,
47 onMouseLeave,
48 className,
49 size = 24,
50 duration = 1,
51 isAnimated = true,
52 color,
53 ...props
54 },
55 ref,
56 ) => {
57 const controls = useAnimation();
58 const reduced = useReducedMotion();
59 const isControlled = useRef(false);
60
61 useImperativeHandle(ref, () => {
62 isControlled.current = true;
63 return {
64 startAnimation: () =>
65 reduced ? controls.start("normal") : controls.start("animate"),
66 stopAnimation: () => controls.start("normal"),
67 };
68 });
69
70 const handleEnter = useCallback(
71 (e?: React.MouseEvent<HTMLDivElement>) => {
72 if (!isAnimated || reduced) return;
73 if (!isControlled.current) controls.start("animate");
74 else onMouseEnter?.(e as any);
75 },
76 [controls, reduced, isAnimated, onMouseEnter],
77 );
78
79 const handleLeave = useCallback(
80 (e: React.MouseEvent<HTMLDivElement>) => {
81 if (!isControlled.current) {
82 controls.start("normal");
83 } else {
84 onMouseLeave?.(e as any);
85 }
86 },
87 [controls, onMouseLeave],
88 );
89
90 const containerVariants: Variants = {
91 normal: { rotate: 0 },
92 animate: {
93 rotate: -6,
94 transition: {
95 duration: 0.35,
96 ease: "easeOut",
97 },
98 },
99 };
100
101 const wheelVariants: Variants = {
102 normal: { rotate: 0 },
103 animate: {
104 rotate: 360,
105 transition: {
106 duration: 1.4 * duration,
107 repeat: Infinity,
108 ease: "linear",
109 },
110 },
111 };
112 const handVariants: Variants = {
113 normal: { rotate: 0 },
114 animate: {
115 rotate: -25,
116 transition: {
117 duration: 0.7 * duration,
118 ease: "easeInOut",
119 repeat: Infinity,
120 repeatType: "mirror",
121 },
122 },
123 };
124
125 return (
126 <LazyMotion features={domMin} strict>
127 <m.div
128// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • icons/lucide/accessibility-icon.tsx

Facts

Registry
animateicons
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

animateicons.in Avijit07x/animateicons on GitHub Raw registry item This item as JSON

More from animateicons

All 326 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
hu-activityhu-activityanimateiconsComponentsFree1 dep
hu-bookmarkhu-bookmarkanimateiconsComponentsFree1 dep
hu-bookmark-checkhu-bookmark-checkanimateiconsComponentsFree1 dep
hu-bookmark-minushu-bookmark-minusanimateiconsComponentsFree1 dep
hu-bookmark-removehu-bookmark-removeanimateiconsComponentsFree1 dep
hu-checkhu-checkanimateiconsComponentsFree1 dep
hu-check-checkhu-check-checkanimateiconsComponentsFree1 dep
hu-chevron-righthu-chevron-rightanimateiconsComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex