Skip to main content

RecordShell

The frame around one record: sticky identity, ranked actions, tabs, body + facts aside.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

The frame around one record: sticky identity, ranked actions, tabs, body + facts aside.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/record-shell
import { RecordShell } from '@/components/prism/RecordShell';

In a no-build prototype, read it from the bundle instead: const { RecordShell } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
eyebrowReact.ReactNode—Small line above the title — record type and reference.
titleReact.ReactNode—
subtitleReact.ReactNode—
statusReact.ReactNode—A Tag/Badge. Lives in the sticky header because state is asked constantly.
actionsReact.ReactNode—ONE primary plus at most two secondaries. Rank them.
overflowReact.ReactNode—Everything else, behind a menu.
tabsRecordTab[]—Renders the full ARIA tabs pattern: ids + aria-controls, a labelled tabpanel around children, and a roving tabindex with Left/Right/Home/End.
activeTabstring—
onTabChange(id: string) => void—
asideReact.ReactNode—Facts column — use RecordFacts. Never put editable work here.
childrenReact.ReactNode—
classNamestring—