This commit is contained in:
Felix Klement committed 2026-09-20 12:45:33 +02:00
1 parent b244287f6a
commit 5a2d49c17f
77 files changed
+2289 -31

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
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>;
}