Initial commit 🚀

This commit is contained in:
Felix Klement committed 2026-10-09 14:00:40 +02:00
commit fd58a8d32f
235 files changed
+19775

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import type { ReactNode } from 'react';
export interface HeadingProps {
/** 2 for a section headline, 3 for a block within it. Never skip a level. */
level?: 2 | 3;
id?: string;
children?: ReactNode;
}
/** A section headline. It may state a claim, but it never advertises. */
export function Heading({ level = 2, id, children }: HeadingProps) {
const Tag = level === 3 ? 'h3' : 'h2';
return (
<Tag id={id} className={level === 3 ? 'h3' : 'h2'}>
{children}
</Tag>
);
}