BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8starlabs-ui/marquee

Marquee component

8starlabs-ui/marquee
FreeComponent

A marquee component

Install it

npx shadcn@latest add https://ui.8starlabs.com/r/marquee.json

Source

registry/8starlabs-ui/blocks/marquee.tsxui.8starlabs.com/r/marquee.json
1"use client";
2
3import { cn } from "@/lib/utils";
4import React from "react";
5
6interface MarqueeProps {
7 grayscale?: boolean;
8 direction?: "left" | "right";
9 pauseOnHover?: boolean;
10 fade?: boolean;
11 children?: React.ReactNode;
12 className?: string;
13}
14
15export default function Marquee({
16 grayscale = false,
17 direction = "left",
18 pauseOnHover = true,
19 fade = true,
20 children,
21 className
22}: MarqueeProps) {
23 const content = React.Children.toArray(children);
24 const containerRef = React.useRef<HTMLDivElement>(null);
25
26 React.useEffect(() => {
27 const container = containerRef.current;
28 if (!container) return;
29 const preventScroll = (e: Event) => {
30 e.preventDefault();
31 e.stopPropagation();
32 container.scrollLeft = 0;
33 };
34 container.addEventListener("scroll", preventScroll, { passive: false });
35 container.addEventListener("wheel", preventScroll, { passive: false });
36 container.addEventListener("touchmove", preventScroll, { passive: false });
37 return () => {
38 container.removeEventListener("scroll", preventScroll);
39 container.removeEventListener("wheel", preventScroll);
40 container.removeEventListener("touchmove", preventScroll);
41 };
42 }, []);
43
44 const animationClass =
45 direction === "left" ? "marquee-inner" : "marquee-inner-reverse";
46
47 return (
48 <div className="relative overflow-hidden">
49 <style jsx global>{`
50 .marquee-container::-webkit-scrollbar {
51 display: none;
52 }
53
54 .marquee-inner {
55 animation: marquee-anim 20s linear infinite;
56 }
57
58 .marquee-inner-reverse {
59 animation: marquee-anim-reverse 20s linear infinite;
60 }
61
62 .marquee-container:hover .marquee-inner,
63 .marquee-container:hover .marquee-inner-reverse {
64 animation-play-state: paused !important;
65 }
66
67 @keyframes marquee-anim {
68 from {
69 transform: translateX(0);
70 }
71 to {
72 transform: translateX(-50%);
73 }
74 }
75
76 @keyframes marquee-anim-reverse {
77 from {
78 transform: translateX(-50%);
79 }
80 to {
81 transform: translateX(0);
82 }
83 }
84 `}</style>
85
86 <div
87 ref={containerRef}
88 className={cn(
89 "flex w-full p-2 [--gap:3rem] select-none cursor-default marquee-container",
90 grayscale &&
91 "grayscale brightness-0 dark:invert opacity-80 transition-opacity",
92// … truncated

Files it writes

  • registry/8starlabs-ui/blocks/marquee.tsx

Facts

Registry
8starlabs-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.8starlabs.com Raw registry item This item as JSON

More from 8starlabs-ui

All 74 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Buttonbutton8starlabs-uiComponentsFree2 deps
Collapsiblecollapsible8starlabs-uiComponentsFree1 dep
Dropdown Menudropdown-menu8starlabs-uiComponentsFree2 deps
Flip clockflip-clock8starlabs-uiComponentsFreeno deps
Heatmapheatmap8starlabs-uiComponentsFreeno deps
Inputinput8starlabs-uiComponentsFreeno deps
JSON Viewerjson-viewer8starlabs-uiComponentsFree1 dep · 3 files
Labellabel8starlabs-uiComponentsFreeno deps

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