跑马灯

支持水平或垂直方向的无限滚动,悬停时暂停。

Vercel
Linear
Stripe
Figma
GitHub
Notion
Loom
Raycast

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/marquee

API 参考

direction?
"left" | "right" | "up" | "down"
left
speed?
number
30
pauseOnHover?
boolean
true
gap?
string
1rem
className?
string
fade?
boolean
true

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.