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

+14
View File
@@ -0,0 +1,14 @@
import type { ReactNode } from 'react';
export interface ColProps {
/** How many of the twelve columns this block occupies. */
span?: number;
/** The column it starts at, counting from 1. Offsets are how asymmetry is made. */
start?: number;
children?: ReactNode;
}
/** One block on the grid. A headline takes 7 or 8 columns, its body copy 4 or 5. */
export function Col({ span = 12, start, children }: ColProps) {
return <div style={{ gridColumn: start ? `${start} / span ${span}` : `span ${span}` }}>{children}</div>;
}