TidalUI

Media showcase preview

Present consumer-owned images, native video or audio, and supplied media slots with captions, transcripts, and accessible selection.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/media-showcase

Import components/ui/tidal.css, components/ui/media-showcase.css. Wrap installed components in tidal-scope.

Preview

Media showcase component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/media-showcase.css";
import{TidalMediaShowcase}from"./components/ui/media-showcase";
export default()=><div className="tidal-scope"><TidalMediaShowcase currentItemId={"example"} items={[{kind:"image",src:"/example.jpg",alt:"value",id:"example",label:"Demo"}]} label={"Demo"} onCurrentItemChange={() => {}}/></div>;

API and props

TidalMediaShowcase.currentItemId (required)
string

Required current item id value accepted by this exported component.

TidalMediaShowcase.items (required)
ReadonlyArray<TidalMediaShowcaseItem>

Required items value accepted by this exported component.

TidalMediaShowcase.label (required)
string

Required label value accepted by this exported component.

TidalMediaShowcase.onCurrentItemChange (required)
(itemId: string, event: TidalMediaShowcaseChangeEvent, source: TidalMediaShowcaseChangeSource) => void

Callback invoked when the current item change interaction is proposed.

TidalMediaShowcase.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalMediaShowcase.error
ReactNode

Optional error value accepted by this exported component.

TidalMediaShowcase.labels
Partial<TidalMediaShowcaseLabels> | undefined

Optional labels value accepted by this exported component.

TidalMediaShowcase.selectionDisabled
boolean | undefined

Optional selection disabled value accepted by this exported component.

TidalMediaShowcase.selectionListProps
Omit<HTMLAttributes<HTMLDivElement>, "role" | "aria-label" | "children" | "dangerouslySetInnerHTML"> | undefined

Optional selection list props value accepted by this exported component.

TidalMediaShowcase.selectionListRef
Ref<HTMLDivElement> | undefined

Optional selection list ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas