Component libraryMedia showcase
Media showcase
ProPresent consumer-owned images, native video or audio, and supplied media slots with captions, transcripts, and accessible selection.
npx shadcn@latest add @tidal-pro/media-showcaseInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/media-showcase.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Requires a nonblank label, unique nonblank item IDs and labels, a controlled currentItemId, and an onCurrentItemChange proposal callback. Items are an explicit image, video, audio, or custom media-slot union. Images require consumer-owned src and alt; video/audio require consumer-owned src and mediaLabel, always render native controls, never autoplay, and may expose safe native props/refs. Video tracks, poster, audio artwork, thumbnail, caption, meta and transcript content remain consumer-owned. No fetch, upload, recording, playback command, analytics, persistence, media generation or network policy occurs. Unavailable items use native disabled selection. Selection props run first and prevention stops higher callbacks. Direction-aware Left/Right plus Up/Down/Home/End move focus inside only the selection rail, with IME/modifier guards and minimal rail-only reveal; Enter/Space retain native button behavior. Root/list/media/selection native props strip owned or unsafe markup at runtime. Numeric ReactNode content, empty/invalid/unknown selection states, linked consumer errors, native refs with React 19 cleanup, 44px actions, 180/320/390 widths, RTL, long labels, forced colors and reduced motion are supported.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.