Preview

Avatar

Sarah Johnson

@sarahjohnson

Frontend Developer with 5+ years experience in React and TypeScript

Avatar

Mike Chen

@mikechen

UI/UX Designer creating beautiful and intuitive user experiences

Avatar

Emily Davis

@emilydavis

Product Manager driving innovation and strategic product development

Avatar

Alex Rodriguez

@alexrodriguez

Backend Engineer building scalable and robust server architectures

Avatar

Lisa Wang

@lisawang

DevOps Specialist ensuring smooth deployments and infrastructure

Avatar

David Kim

@davidkim

Data Scientist extracting insights from complex datasets

Avatar

Sarah Johnson

@sarahjohnson

Frontend Developer with 5+ years experience in React and TypeScript

Avatar

Mike Chen

@mikechen

UI/UX Designer creating beautiful and intuitive user experiences

Avatar

Emily Davis

@emilydavis

Product Manager driving innovation and strategic product development

Avatar

Alex Rodriguez

@alexrodriguez

Backend Engineer building scalable and robust server architectures

Avatar

Lisa Wang

@lisawang

DevOps Specialist ensuring smooth deployments and infrastructure

Avatar

David Kim

@davidkim

Data Scientist extracting insights from complex datasets

Installation

<> import.ts
import { Marquee } from "@/components/ui/marquee"

Code

<> component.tsx
import { Marquee } from "@/components/ui/marquee"

<Marquee />

API Reference

Marquee

Smooth scrolling marquee for cards or custom nodes with optional double layer.

<> import.ts
import { Marquee, defaultMarqueeCards } from "@/components/ui/marquee"

Props

PropTypeDefaultDescription
cards
Array<{ id: number | string; name: string; description: string; avatar?: string; image?: string }>Cards to render when not using children
speed
"slow" | "normal" | "fast""normal"Scroll speed
direction
"left" | "right""left"Scroll direction
pauseOnHover
booleantruePause animation on hover
fadeEdges
booleantrueShow edge fading
className
string""Additional CSS classes
layers
"single" | "double""single"Single or double marquee layers
children
React.ReactNodeCustom nodes; overrides cards

Examples

Example 1
<> example.tsx
// Cards
<Marquee cards={defaultMarqueeCards} />