BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/eldoraui/animated-badge

animated-badge

eldoraui/animated-badge
FreeComponent

An animated badge component.

Live preview

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

Install it

npx shadcn@latest add https://eldoraui.site/r/animated-badge.json

Source

registry/eldoraui/animated-badge.tsxeldoraui.site/r/animated-badge.json
1"use client"
2
3import Link from "next/link"
4import { ChevronRight } from "lucide-react"
5import { motion } from "motion/react"
6
7type AnimatedBadgeProps = {
8 text?: string
9 color?: string // hex or css color value
10 href?: string // optional redirect link
11}
12
13function hexToRgba(hexColor: string, alpha: number): string {
14 const hex = hexColor.replace("#", "")
15 if (hex.length === 3) {
16 const r = parseInt(hex[0] + hex[0], 16)
17 const g = parseInt(hex[1] + hex[1], 16)
18 const b = parseInt(hex[2] + hex[2], 16)
19 return `rgba(${r}, ${g}, ${b}, ${alpha})`
20 }
21 if (hex.length === 6) {
22 const r = parseInt(hex.substring(0, 2), 16)
23 const g = parseInt(hex.substring(2, 4), 16)
24 const b = parseInt(hex.substring(4, 6), 16)
25 return `rgba(${r}, ${g}, ${b}, ${alpha})`
26 }
27 return hexColor
28}
29
30const AnimatedBadge = ({
31 text = "Introducing Eldoraui",
32 color = "#22d3ee",
33 href,
34}: AnimatedBadgeProps) => {
35 const content = (
36 <motion.div
37 initial={false}
38 whileInView={{
39 opacity: 1,
40 y: 0,
41 filter: "blur(0px)",
42 }}
43 transition={{
44 duration: 0.3,
45 delay: 0.1,
46 ease: "easeInOut",
47 }}
48 viewport={{ once: true }}
49 className="group relative flex max-w-fit items-center justify-center gap-3 rounded-full border border-neutral-300 bg-white px-4 py-1.5 text-neutral-700 transition-colors dark:border-neutral-700/80 dark:bg-black dark:text-zinc-300"
50 >
51 <div className="pointer-events-none absolute inset-x-0 bottom-full h-20 w-[165px]">
52 <svg
53 className="h-full w-full"
54 width="100%"
55 height="100%"
56 viewBox="0 0 50 50"
57 fill="none"
58 >
59 {/* <g stroke="#fff" strokeWidth="0.4">
60 <path d="M 69 49.8 h -30 q -3 0 -3 -3 v -15 q 0 -3 -3 -3 h -23 q -3 0 -3 -3 v -15 q 0 -3 -3 -3 h -30" />
61 </g> */}
62 <g mask="url(#ml-mask-1)">
63 <circle
64 className="multiline ml-light-1"
65 cx="0"
66 cy="0"
67 r="20"
68 fill="url(#ml-white-grad)"
69 />
70 </g>
71 <defs>
72 <mask id="ml-mask-1">
73 <path
74 d="M 69 49.8 h -30 q -3 0 -3 -3 v -13 q 0 -3 -3 -3 h -23 q -3 0 -3 -3 v -13 q 0 -3 -3 -3 h -30"
75 strokeWidth="0.6"
76 stroke="white"
77 />
78 </mask>
79 <radialGradient id="ml-white-grad" fx="1">
80// … truncated

What it pulls in

npm packages

  • motion
  • lucide-react

Files it writes

  • registry/eldoraui/animated-badge.tsx

Facts

Registry
eldoraui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on eldoraui eldoraui.site karthikmudunuri/eldoraui on GitHub Raw registry item This item as JSON

More from eldoraui

All 115 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
animated-frameworksanimated-frameworkseldorauiComponentsFree2 deps
animated-grid-patternanimated-grid-patterneldorauiComponentsFree3 deps
animated-listanimated-listeldorauiComponentsFree1 dep
animated-shiny-buttonanimated-shiny-buttoneldorauiComponentsFree1 dep
blur-in-textblur-in-texteldorauiComponentsFree3 deps
browserbrowsereldorauiComponentsFree2 deps
card-flip-hovercard-flip-hovereldorauiComponentsFree1 dep
clerk-otpclerk-otpeldorauiComponentsFree2 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