BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/eldoraui/logo-timeline

logo-timeline

eldoraui/logo-timeline
FreeComponent

An animated logo timeline component with horizontal scrolling logos.

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/logo-timeline.json

Source

registry/eldoraui/logo-timeline.tsxeldoraui.site/r/logo-timeline.json
1"use client"
2
3import type React from "react"
4import { useState } from "react"
5import { motion } from "motion/react"
6
7import { cn } from "@/lib/utils"
8import { Icons } from "@/components/icons"
9
10export interface LogoItem {
11 /** The label text displayed next to the icon */
12 label: string
13 /** The icon name from the Icons object (e.g., "gitHub", "react", "tailwind") */
14 icon: keyof typeof Icons
15 /** Animation delay in seconds (use negative values for staggered effect) */
16 animationDelay: number
17 /** Animation duration in seconds */
18 animationDuration: number
19 /** The row number where this logo should appear (1-based) */
20 row: number
21}
22
23export interface LogoTimelineProps {
24 /** Array of logo items to display */
25 items: LogoItem[]
26 /** Optional title text to display in the center */
27 title?: string
28 /** Height of the timeline container */
29 height?: string
30 /** Additional className for the container */
31 className?: string
32 /** Icon size in pixels (default: 16) */
33 iconSize?: number
34 /** Whether to show separator lines between rows (default: true) */
35 showRowSeparator?: boolean
36 /** Whether to animate logos only on hover (default: false) */
37 animateOnHover?: boolean
38}
39
40export function LogoTimeline({
41 items,
42 title,
43 height = "h-[400px] sm:h-[800px]",
44 className,
45 iconSize = 16,
46 showRowSeparator = true,
47 animateOnHover = false,
48}: LogoTimelineProps) {
49 const [isHovered, setIsHovered] = useState(false)
50
51 // Group items by row
52 const rowsMap = new Map<number, LogoItem[]>()
53 items.forEach((item) => {
54 if (!rowsMap.has(item.row)) {
55 rowsMap.set(item.row, [])
56 }
57 rowsMap.get(item.row)?.push(item)
58 })
59
60 // Convert map to sorted array
61 const rows = Array.from(rowsMap.entries())
62 .sort(([a], [b]) => a - b)
63 .map(([, rowItems]) => rowItems)
64
65 // Determine animation play state
66 const animationPlayState = animateOnHover
67 ? isHovered
68 ? "running"
69 : "paused"
70 : "running"
71
72 const getIconComponent = (iconName: keyof typeof Icons) => {
73 const Icon = Icons[iconName]
74 if (!Icon) {
75 return null
76 }
77 return (
78 <Icon
79 className="shrink-0"
80 style={{ width: iconSize, height: iconSize }}
81 aria-hidden="true"
82 />
83 )
84 }
85
86 return (
87 <section className={cn("w-full", height, className)}>
88 <motion.div
89 aria-hidden="true"
90 className="bg-background relative h-full w-full overflow-hidden py-24 ring-inset sm:py-32"
91// … truncated

What it pulls in

npm packages

  • react
  • motion

Other registry items

  • utils

Files it writes

  • registry/eldoraui/logo-timeline.tsx

Facts

Registry
eldoraui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
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-badgeanimated-badgeeldorauiComponentsFree2 deps
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
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