Skip to documentation

Design system / Sources & standards

Current repository source

specimen-board.tsx

src/components/editorial/specimen-board.tsx

This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.

import type { ComponentProps, ReactNode } from "react";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
import { Text } from "@/components/ui/text";

/** Molecule: labeled specimen and its explanatory footer, using the real Card. */
export function SpecimenBoard({
  title,
  children,
  footer,
  ...props
}: Omit<ComponentProps<typeof Card>, "title"> & {
  title: string;
  footer?: ReactNode;
}) {
  return (
    <Card
      elevation="flat"
      {...props}
      data-slot="specimen-board"
      role={props.role ?? "group"}
      aria-label={props["aria-label"] ?? title}
    >
      <CardHeader>
        <Text variant="eyebrow" className="text-text-muted">
          {title}
        </Text>
      </CardHeader>
      <CardContent className="space-y-6">
        {children}
        {footer != null && <div className="border-t pt-4">{footer}</div>}
      </CardContent>
    </Card>
  );
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.