Overflow marquee
A label too long for its space: at rest it ends in an ellipsis, and while it or the row around it is pointed at or focused it slides to show its end, waits and slides back. A label that fits never moves.
When to use
- Track names, file names and titles in narrow rows and cards.
- Places where truncation would hide the part that tells items apart.
When not to use
- Text people need to read in full at once; let it wrap.
- Several moving labels side by side.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/overflow-marquee
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
OverflowMarquee
2 props
Also accepts the native props of its root element and a ref.
PropTypeDefaultDescription
children *string—
speednumber40Pixels per second while it slides.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes option semantics.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/overflow-marquee.mdThe index of every part is at /llms.txt.