TVRail
A horizontally-scrolling row of cards with focus memory and automatic track scrolling as focus moves.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A horizontally-scrolling row of cards with focus memory and automatic track scrolling as focus moves.
Accessibility
Designed for the ten-foot / remote experience: large focus targets, a single bright focus highlight, D-pad navigation, and high-contrast type. Honours data-scale="cinema".
Install and import
npx shadcn@latest add @prism/tv-rail
import { TVRail } from '@/components/prism/TVRail';
In a no-build prototype, read it from the bundle instead: const { TVRail } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | React.ReactNode | — | Row heading. |
more | React.ReactNode | — | Trailing affordance; default "See All ›". Pass null/"" to hide. |
children | React.ReactNode | — | Cards, typically <TVCard>s. |