A shadcn-style marquee component built with Ark UI primitives.

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Installation

npx shadcn@latest add @ark-cn/marquee

Usage

import * as Marquee from "@/components/ui/marquee"

Read exported parts in src/components/ui/marquee.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Auto Fill

🍎Apple
🍌Banana
🍒Cherry

Context

Paused: false · Orientation: horizontal

🍎Apple
🍌Banana
🍒Cherry

Reverse

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Pause on Interaction

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Programmatic Controls

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Finite Loops

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Loops finished: 0 · Runs completed: 0

With Edges

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Orientation Compare

Horizontal

🍎Apple
🍌Banana
🍒Cherry

Vertical (side bottom)

🍎Apple
🍌Banana
🍒Cherry

Speed

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

Vertical

🍎Apple
🍌Banana
🍒Cherry
🍇Grape
🍉Watermelon
🍓Strawberry

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.