TVScene
Root of a Prism 10-foot surface: 16:9 stage, cinematic backdrop, title-safe frame, pinned top bar, pannable body, and a built-in spatial focus engine over every [data-tv-focus] descendant.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Root of a Prism 10-foot surface: 16:9 stage, cinematic backdrop, title-safe frame, pinned top bar, pannable body, and a built-in spatial focus engine over every [data-tv-focus] descendant.
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-scene
import { TVScene } from '@/components/prism/TVScene';
In a no-build prototype, read it from the bundle instead: const { TVScene } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
scale | "tv" | "cinema" | "desktop" | — | Device tier; drives the cinema scale. Default "tv". |
theme | "dark" | "light" | — | Color theme. TV surfaces are dark by default. |
backdrop | boolean | — | Render the crossfading cinematic backdrop layers. Default true. |
showHint | boolean | — | Show the corner remote hint. Default true. |
hint | React.ReactNode | — | Custom hint content (replaces the default ↑↓←→ / ⏎ legend). |
idleMs | number | — | Idle timeout in ms; after this with no input the scene shows its idle slot. |
panAnchor | number | — | Where the focused row sits vertically when panning (0–1). Default 0.4. |
topBar | React.ReactNode | — | Pinned top bar (e.g. <TVTopBar>); stays fixed while the body pans. |
idle | React.ReactNode | — | Idle/screensaver slot (e.g. <TVIdleScreen>); shown when idle. |
overlay | React.ReactNode | — | Overlay slot rendered above everything (e.g. <TVModal>, <TVEmergencyScreen>). |
toasts | React.ReactNode | — | Toast slot (e.g. <TVToast>). |
onBack | () => void | — | Called when Back/Esc is pressed. |
onHome | () => void | — | Called when Home is pressed. |
onMenu | () => void | — | Called when the Menu/context key is pressed. |
onIdle | (asleep: boolean) => void | — | Called when the scene sleeps (true) or wakes (false). |
children | React.ReactNode | — |