TVTabs
The frosted "Liquid Glass" pill of top-level destinations.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
The frosted "Liquid Glass" pill of top-level destinations.
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-tabs
import { TVTabs } from '@/components/prism/TVTabs';
In a no-build prototype, read it from the bundle instead: const { TVTabs } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
items | TVTabItem[] | Yes | Tabs as strings or { label, current, art } objects. |
current | number | — | Index of the current tab (when items are plain strings). |
onSelect | (index: number, item: TVTabItem) => void | — | Called with (index, item) when a tab is selected. |
art | string | — | Backdrop image URL to show when a tab is focused. |