BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lucide-animated/align-horizontal

align-horizontal

lucide-animated-pqoqubbw/align-horizontal
FreeComponent

lucide-animated publishes no description for this item.

Install it

npx shadcn@latest add https://lucide-animated.com/r/align-horizontal.json

Source

align-horizontal.tsxlucide-animated.com/r/align-horizontal.json
1"use client";
2
3import type { Transition } from "motion/react";
4import { motion, useAnimation } from "motion/react";
5import type { HTMLAttributes } from "react";
6import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
7
8import { cn } from "@/lib/utils";
9
10export interface AlignHorizontalIconHandle {
11 startAnimation: () => void;
12 stopAnimation: () => void;
13}
14
15interface AlignHorizontalIconProps extends HTMLAttributes<HTMLDivElement> {
16 size?: number;
17}
18
19const DEFAULT_TRANSITION: Transition = {
20 type: "spring",
21 stiffness: 160,
22 damping: 17,
23 mass: 1,
24};
25
26const AlignHorizontalIcon = forwardRef<
27 AlignHorizontalIconHandle,
28 AlignHorizontalIconProps
29>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
30 const controls = useAnimation();
31 const isControlledRef = useRef(false);
32
33 useImperativeHandle(ref, () => {
34 isControlledRef.current = true;
35
36 return {
37 startAnimation: () => controls.start("animate"),
38 stopAnimation: () => controls.start("normal"),
39 };
40 });
41
42 const handleMouseEnter = useCallback(
43 (e: React.MouseEvent<HTMLDivElement>) => {
44 if (isControlledRef.current) {
45 onMouseEnter?.(e);
46 } else {
47 controls.start("animate");
48 }
49 },
50 [controls, onMouseEnter]
51 );
52
53 const handleMouseLeave = useCallback(
54 (e: React.MouseEvent<HTMLDivElement>) => {
55 if (isControlledRef.current) {
56 onMouseLeave?.(e);
57 } else {
58 controls.start("normal");
59 }
60 },
61 [controls, onMouseLeave]
62 );
63
64 return (
65 <div
66 className={cn(className)}
67 onMouseEnter={handleMouseEnter}
68 onMouseLeave={handleMouseLeave}
69 {...props}
70 >
71 <svg
72 fill="none"
73 height={size}
74 stroke="currentColor"
75 strokeLinecap="round"
76 strokeLinejoin="round"
77 strokeWidth="2"
78 viewBox="0 0 24 24"
79 width={size}
80 xmlns="http://www.w3.org/2000/svg"
81 >
82 <motion.rect
83 animate={controls}
84 height="10"
85 rx="2"
86 transition={DEFAULT_TRANSITION}
87 variants={{
88 normal: { scaleX: 1 },
89 animate: { scaleX: 0.85 },
90 }}
91 width="6"
92 x="9"
93 y="7"
94 />
95 <motion.path
96 animate={controls}
97 d="M4 22V2"
98 transition={DEFAULT_TRANSITION}
99 variants={{
100 normal: { translateX: 0, scaleY: 1 },
101 animate: {
102// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • align-horizontal.tsx

Facts

Registry
lucide-animated
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

lucide-animated.com pqoqubbw/icons on GitHub Raw registry item This item as JSON

More from lucide-animated

All 466 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
a-arrow-downa-arrow-downlucide-animatedComponentsFree1 dep
a-arrow-upa-arrow-uplucide-animatedComponentsFree1 dep
accessibilityaccessibilitylucide-animatedComponentsFree1 dep
activityactivitylucide-animatedComponentsFree1 dep
air-ventair-ventlucide-animatedComponentsFree1 dep
airplaneairplanelucide-animatedComponentsFree1 dep
airplayairplaylucide-animatedComponentsFree1 dep
alarm-clockalarm-clocklucide-animatedComponentsFree1 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