import type { CSSProperties, ReactNode } from 'react' /** * Display Case — DefinitionList * A bordered list of term / description rows. The term is a mono uppercase * eyebrow in the accent colour; the description is body text that may include * `` emphasis. Generic specimen primitive for a Primer — use it to lay * out voice rules, content fundamentals, or any keyed reference. */ export interface DefEntry { /** Mono uppercase term shown in the accent colour (also the React key). */ term: string /** Description body — plain text or rich nodes (e.g. ``). */ description: ReactNode } export interface DefinitionListProps { entries: DefEntry[] /** Width of the term column (any CSS length). */ termWidth?: string } export function DefinitionList({ entries, termWidth = '7.5rem', }: DefinitionListProps) { return (
{entries.map((e) => (
{e.term}
{e.description}
))}
) }