Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
869 B · 45 lines
TSX
at sl/gitmirror
12345678910111213141516171819202122232425262728293031323334353637383940414243444546import type { ComponentChildren } from "preact";
interface StyleProps { style?: Record<string, string | number>; children?: ComponentChildren;}
export function Card({ children, style }: StyleProps) { return ( <div style={{ width: 1200, height: 630, background: "white", display: "flex", flexDirection: "column", padding: 48, ...style, }}> {children} </div> );}
export function Row({ children, style }: StyleProps) { return ( <div style={{ display: "flex", flexDirection: "row", alignItems: "center", ...style, }}> {children} </div> );}
export function Col({ children, style }: StyleProps) { return ( <div style={{ display: "flex", flexDirection: "column", ...style }}> {children} </div> );}