Orbit Stack
Testimonial cards on a slow orbit around your headline.
PROGet Orbit Stack and 168 other Pro components with pro lifetime — Get Pro
- Category
- Creative
- Access
- ProPro · unlocked
- Source
- 276 lines · one file
- States
- 4 drawn
The decision inside it
It stops for the reader
Hovering, focusing or touching a card halts the orbit, so nobody chases a quote around a circle to finish it. Choosing a card turns the ring the short way round with a spring. Off screen or with reduced motion it holds still; the arrows still work.
When to use it
Use Orbit Stack for a handful of testimonials shown as one moving piece: cards on a slow orbit that stop on hover. For a scroll-driven deck use Stack Shuffle.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Liro's Orbit Stack for this.
Install it: npx shadcn@latest add @liro/orbit-stack
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/orbit-stack.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.
Usage
import { OrbitStack } from "@/components/ui/orbit-stack";
const PEOPLE = [
{ id: "ines", name: "Ines Moreau", role: "Founder, Vertically", quote: "It paid for itself in the first week." },
{ id: "daniel", name: "Daniel Okafor", role: "CTO, Liro", quote: "Our agent installs a component and it just fits." },
{ id: "mira", name: "Mira Lindqvist", role: "Design lead", quote: "Every state is there, and they look like one product." },
];
export function Testimonials() {
return <OrbitStack items={PEOPLE} height={480} />;
}API reference
“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Type | Notes | ||
|---|---|---|---|
items | OrbitItem[] | Yes | – |
speed | number | No | Degrees per second while orbiting. 0 to hold still. Default 7. |
height | number | No | Height of the stage, in px. Default 460. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themeStates
All of them are drawn by the component. None is left for you to design.
- Orbiting
- Held
- Brought forward
- Reduced motion
Accessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances