Marquee
Infinite scroll marquee with configurable speed, direction, gap, and pause-on-hover.
ReactTypeScriptTailwindRadix UIOKLCHParticleUIOpen SourceFreeReactTypeScriptTailwindRadix UIOKLCHParticleUIOpen SourceFreeReactTypeScriptTailwindRadix UIOKLCHParticleUIOpen SourceFreeReactTypeScriptTailwindRadix UIOKLCHParticleUIOpen SourceFree
FreeOpen SourceParticleUIOKLCHRadix UITailwindTypeScriptReactFreeOpen SourceParticleUIOKLCHRadix UITailwindTypeScriptReactFreeOpen SourceParticleUIOKLCHRadix UITailwindTypeScriptReactFreeOpen SourceParticleUIOKLCHRadix UITailwindTypeScriptReact
Installation
1
Run the CLI
$npx particleui-cli add marquee
Usage
TSX
import { Marquee } from "@/components/ui/marquee"
export default function Example() {
return (
<Marquee speed={30} pauseOnHover gap={24}>
{["React", "TypeScript", "Tailwind", "OKLCH", "ParticleUI"].map((tag) => (
<span key={tag} className="rounded-full border border-border bg-surface-1 px-4 py-1.5 text-sm text-text-2">
{tag}
</span>
))}
</Marquee>
)
}Props
| Prop | Type | Default | Required |
|---|---|---|---|
| children | React.ReactNode | — | yes |
| speed | number | 40 | no |
| direction | "left" | "right" | "left" | no |
| pauseOnHover | boolean | true | no |
| gap | number | 16 | no |
| className | string | — | no |
| repeat | number | 4 | no |
Details
Source filecomponents/ui/marquee.tsx
Typeui
Categorieslayout, particles
npm dependencies
Registry deps
Claude skill—