TVLanguageSelector
A large-target language grid for first-run / in-stay switching.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A large-target language grid for first-run / in-stay switching.
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-language-selector
import { TVLanguageSelector } from '@/components/prism/TVLanguageSelector';
In a no-build prototype, read it from the bundle instead: const { TVLanguageSelector } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
languages | TVLanguage[] | Yes | |
columns | number | — | Columns in the grid. Default 3. |
current | string | number | — | Currently selected code or index. |
onSelect | (language: TVLanguage, index: number) => void | — | |
art | string | — | Backdrop URL when an option is focused. |