Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849import type { ComponentChildren } from "preact";import { CARD, COLORS } from "./constants";
interface StyleProps { style?: Record<string, string | number>; children?: ComponentChildren;}
export function Card({ children, style }: StyleProps) { return ( <div style={{ width: CARD.width, height: CARD.height, backgroundColor: COLORS.background, display: "flex", flexDirection: "column", padding: CARD.padding, paddingBottom: 0, justifyContent: "space-between", ...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> );}