Files
homepage_relaunch/.design-sync/ds-src/Display.tsx
T
2026-10-09 14:00:40 +02:00

13 lines
378 B
TypeScript

import type { ReactNode } from 'react';
export interface DisplayProps {
/** h1 by default. One h1 per page. */
as?: 'h1' | 'h2' | 'p';
children?: ReactNode;
}
/** The largest type on the page. Break its lines by hand; it is a composed object. */
export function Display({ as: Tag = 'h1', children }: DisplayProps) {
return <Tag className="display">{children}</Tag>;
}