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 barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
eyebrow | React.ReactNode | — | Small line above the title — record type and reference. |
title | React.ReactNode | — | |
subtitle | React.ReactNode | — | |
status | React.ReactNode | — | A Tag/Badge. Lives in the sticky header because state is asked constantly. |
actions | React.ReactNode | — | ONE primary plus at most two secondaries. Rank them. |
overflow | React.ReactNode | — | Everything else, behind a menu. |
tabs | RecordTab[] | — | Renders the full ARIA tabs pattern: ids + aria-controls, a labelled tabpanel around children, and a roving tabindex with Left/Right/Home/End. |
activeTab | string | — | |
onTabChange | (id: string) => void | — | |
aside | React.ReactNode | — | Facts column — use RecordFacts. Never put editable work here. |
children | React.ReactNode | — | |
className | string | — |