BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/animateicons/hu-figma

hu-figma

animateicons/hu-figma
FreeComponent

animateicons publishes no description for this item.

Install it

npx shadcn@latest add https://animateicons.in/r/hu-figma.json

Source

figma-icon.tsxanimateicons.in/r/hu-figma.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 FigmaIconHandle {
20 startAnimation: () => void;
21 stopAnimation: () => void;
22}
23
24interface FigmaIconProps 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 FigmaIcon = forwardRef<FigmaIconHandle, FigmaIconProps>(
41 (
42 {
43 onMouseEnter,
44 onMouseLeave,
45 className,
46 size = 24,
47 duration = 1,
48 isAnimated = true,
49 color,
50 ...props
51 },
52 ref,
53 ) => {
54 const controls = useAnimation();
55 const reduced = useReducedMotion();
56 const isControlled = useRef(false);
57
58 useImperativeHandle(ref, () => {
59 isControlled.current = true;
60 return {
61 startAnimation: () =>
62 reduced ? controls.start("normal") : controls.start("animate"),
63 stopAnimation: () => controls.start("normal"),
64 };
65 });
66
67 const handleEnter = useCallback(
68 (e?: React.MouseEvent<HTMLDivElement>) => {
69 if (!isAnimated || reduced) return;
70 if (!isControlled.current) controls.start("animate");
71 else onMouseEnter?.(e as any);
72 },
73 [controls, reduced, isAnimated, onMouseEnter],
74 );
75
76 const handleLeave = useCallback(
77 (e?: React.MouseEvent<HTMLDivElement>) => {
78 if (!isControlled.current) controls.start("normal");
79 else onMouseLeave?.(e as any);
80 },
81 [controls, onMouseLeave],
82 );
83
84 const containerVariants: Variants = {
85 normal: {
86 scale: 1,
87 y: 0,
88 },
89 animate: {
90 scale: [1, 1.04, 1],
91 y: [0, -1, 0],
92 transition: {
93 duration: 0.7 * duration,
94 ease: "easeInOut",
95 },
96 },
97 };
98
99 const segmentVariants: Variants = {
100 normal: {
101 opacity: 1,
102 y: 0,
103 },
104 animate: (i: number) => ({
105 opacity: [0, 1],
106 y: [3, 0],
107 transition: {
108 duration: 0.45 * duration,
109 ease: "easeOut",
110 delay: i * 0.08,
111 },
112 }),
113 };
114
115 return (
116 <LazyMotion features={domMin} strict>
117 <m.div
118 className={cn("inline-flex items-center justify-center", className)}
119 onMouseEnter={handleEnter}
120 onMouseLeave={handleLeave}
121 {...props}
122 style={{ color, ...props.style }}
123 >
124 <m.svg
125// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • icons/huge/figma-icon.tsx

Facts

Registry
animateicons
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-01
Last confirmed
today

Go to the source

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

More from animateicons

All 542 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

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