Skip to documentation

Design system / Organisms

Organism / Navigation and discovery

ContentShowcase

ContentShowcase owns a generic content collection. Cards and carousel are alternative presentations, not a carousel-owned card layout.

Content browsingOrganism

Intent and composition

The showcase module composes Card, the slot-only ShowcaseGrid template, an optional ContentCarousel presentation and the existing Dialog. An optional supplied companion shares the card grid without becoming an expandable item or changing media indices. Each media card opens its own item; the carousel opens its current item. Expanded content mounts only while the dialog is open. The collection-owned hook pauses owned players, returns selection to an originating carousel and restores launch focus. Radix owns modality. No new engine, measurement, global store or transport is added.

Coordinated concerns: Generic card collection, optional companion in a slot-only grid, alternative carousel presentation, expansion triggers and selected-item return.

Receives presentation nodes and stable identities. useContentShowcase owns local dialog coordination and owned-player pause. Radix owns modality; Embla owns navigation. No file fetching, authorization or global store.

Real component specimen

Actual generic carousel, independent cards and a mixed-card grid with supplied information demonstrate collection/template separation. These fictional panels use no media, tenant requests or file access.

Live preview

Real component, fictional data. Interactive callbacks remain local.

Panel carousel (2)

First panel
Second panel

Panel cards (2)

1 of 2

First panel

Fictional supplied panel.

2 of 2

Second panel

Fictional supplied panel.

1 of 1

First panel

Fictional supplied panel.

Generic card grid (2)

Supplied information

This ordinary card stretches to match the featured content.

The grid accepts supplied content without knowing its type or opening it in a carousel.

2 of 2

Second panel

Fictional supplied panel.

Supported inputs and ownership

ContentShowcase input summary
InputResponsibility
title / emptyMessageCollection name and accessible carousel/dialog names; defaults to No items to display when empty.
showTitleBoolean, true by default. false removes the inline visible heading without losing the collection's accessible name or the expanded viewer's title.
variantcarousel (default) or cards. Cards form one wrapping horizontal section, full width below sm and container-constrained w-64 from sm. Noninteractive card content opens its item; an icon-only native Expand button stays at the top-right for keyboard access. Video/audio, file controls and selected text keep their own behavior. No nested button, overlay intercepting controls, inline paddles or dots.
companionOptional ReactNode. In cards mode it enables ShowcaseGrid: the first item spans two desktop columns and its natural content determines first-row height. The companion fills the last column and stretches to match, with keyboard scrolling for excess information. Later rows have up to three equal-width/equal-height cards; a final pair fills half each, and a single fills the row. Each later row follows its own tallest card. Narrow containers stack in DOM order. Carousel mode retains the companion below the carousel.
ShowcaseGrid templatesrc/components/showcase/showcaseGrid.tsx accepts featured, companion and children as arbitrary React content. It owns layout only, with no media interpretation, carousel, fetching, state or controls. CSS size containment prevents companion content from increasing the first-row height; no runtime measurement is used.
itemsStable id, accessible label, content/footer, optional cardFooter and featuredContent, expandedContent and optional expandedFooter. featuredContent supplies a natural-height first preview; otherwise content is reused. Featured descriptions remain complete and contribute to card height. footer may use carousel Context; cardFooter must work without it. Native controls remain independent.
Expanded viewContentCarouselDialog composes shared DialogContent with scoped dark tokens, dynamic viewport/safe-area sizing, persistent Close and larger caller-supplied details. One shared paddle pair sits at the complete carousel owner's midpoint, outside the moving slides and variable-height footer, so description changes cannot move it. Desktop viewport hover/focus reveals controls; mobile retains swipe without paddles.

This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.

Using it in a page

Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.

Implementation

src/components/showcase/contentShowcase.tsx
All organisms
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.