BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/componentry/animated-gradient

Animated Gradient

componentry/animated-gradient
FreeComponent

Component for animated-gradient

Live preview

live · rendered by the registry
Rendered by componentry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://componentry.dev/r/animated-gradient.json

Source

components/ui/animated-gradient.tsxcomponentry.dev/r/animated-gradient.json · first 6 KB
1"use client";
2
3import { useRef, useEffect, useMemo, useState, CSSProperties } from "react";
4import { cn } from "@/lib/utils";
5import { WebGLErrorBoundary, WebGLFallback } from "./webgl-error-boundary";
6
7type PatternShape = "Checks" | "Stripes" | "Edge";
8
9const PatternShapes: Record<PatternShape, number> = {
10 Checks: 0,
11 Stripes: 1,
12 Edge: 2,
13};
14
15interface PresetParams {
16 color1: string;
17 color2: string;
18 color3: string;
19 rotation: number;
20 proportion: number;
21 scale: number;
22 speed: number;
23 distortion: number;
24 swirl: number;
25 swirlIterations: number;
26 softness: number;
27 offset: number;
28 shape: PatternShape;
29 shapeSize: number;
30}
31
32const presets: Record<PresetName, PresetParams> = {
33 Aurora: {
34 color1: "#0a001a",
35 color2: "#1a0b2e",
36 color3: "#f20089",
37 rotation: -45,
38 proportion: 60,
39 scale: 0.6,
40 speed: 15,
41 distortion: 40,
42 swirl: 80,
43 swirlIterations: 10,
44 softness: 100,
45 offset: 200,
46 shape: "Edge",
47 shapeSize: 50,
48 },
49 Oceanic: {
50 color1: "#000814",
51 color2: "#001d3d",
52 color3: "#00b4d8",
53 rotation: 0,
54 proportion: 70,
55 scale: 0.4,
56 speed: 10,
57 distortion: 15,
58 swirl: 50,
59 swirlIterations: 12,
60 softness: 80,
61 offset: 150,
62 shape: "Checks",
63 shapeSize: 30,
64 },
65 Amber: {
66 color1: "#140c00",
67 color2: "#4a2500",
68 color3: "#f57c00",
69 rotation: 120,
70 proportion: 80,
71 scale: 0.8,
72 speed: 20,
73 distortion: 25,
74 swirl: 60,
75 swirlIterations: 8,
76 softness: 90,
77 offset: 500,
78 shape: "Stripes",
79 shapeSize: 40,
80 },
81 Toxic: {
82 color1: "#050d05",
83 color2: "#0a240a",
84 color3: "#39ff14",
85 rotation: -90,
86 proportion: 55,
87 scale: 0.5,
88 speed: 25,
89 distortion: 60,
90 swirl: 100,
91 swirlIterations: 15,
92 softness: 70,
93 offset: -100,
94 shape: "Edge",
95 shapeSize: 20,
96 },
97 Ghost: {
98 color1: "#0a0a0a",
99 color2: "#1c1c1c",
100 color3: "#a3a3a3",
101 rotation: 45,
102 proportion: 50,
103 scale: 0.3,
104 speed: 8,
105 distortion: 10,
106 swirl: 30,
107 swirlIterations: 5,
108 softness: 100,
109 offset: 0,
110 shape: "Checks",
111 shapeSize: 60,
112 },
113};
114
115// … truncated

Facts

Registry
componentry
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on componentry componentry.dev harshjdhv/componentry on GitHub Raw registry item This item as JSON

More from componentry

All 59 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ASCII Effectascii-effectcomponentryComponentsFreeno deps
Aurora Flowaurora-flowcomponentryComponentsFreeno deps
auth-modalauth-modalcomponentryComponentsFreeno deps
border-beamborder-beamcomponentryComponentsFreeno deps
circuit-boardcircuit-boardcomponentryComponentsFreeno deps
closing-plasmaclosing-plasmacomponentryComponentsFreeno deps
collection-surfercollection-surfercomponentryComponentsFreeno deps
Command Menucommand-menucomponentryComponentsFreeno deps
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