Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
scale"tv" | "cinema" | "desktop"—Device tier; drives the cinema scale. Default "tv".
theme"dark" | "light"—Color theme. TV surfaces are dark by default.
backdropboolean—Render the crossfading cinematic backdrop layers. Default true.
showHintboolean—Show the corner remote hint. Default true.
hintReact.ReactNode—Custom hint content (replaces the default ↑↓←→ / ⏎ legend).
idleMsnumber—Idle timeout in ms; after this with no input the scene shows its idle slot.
panAnchornumber—Where the focused row sits vertically when panning (0–1). Default 0.4.
topBarReact.ReactNode—Pinned top bar (e.g. <TVTopBar>); stays fixed while the body pans.
idleReact.ReactNode—Idle/screensaver slot (e.g. <TVIdleScreen>); shown when idle.
overlayReact.ReactNode—Overlay slot rendered above everything (e.g. <TVModal>, <TVEmergencyScreen>).
toastsReact.ReactNode—Toast slot (e.g. <TVToast>).
onBack() =&gt; void—Called when Back/Esc is pressed.
onHome() =&gt; void—Called when Home is pressed.
onMenu() =&gt; void—Called when the Menu/context key is pressed.
onIdle(asleep: boolean) =&gt; void—Called when the scene sleeps (true) or wakes (false).
childrenReact.ReactNode—