Skip to content

Build your personal knowledge base with Trilium Notes

412 B
Raw Blame
import type { ComponentChildren, CSSProperties } from "preact";

interface ColumnProps {
    md?: number;
    children: ComponentChildren;
    className?: string;
    style?: CSSProperties;
}

export default function Column({ md, children, className, style }: ColumnProps) {
    return (
        <div className={`col-md-${md ?? 6} ${className ?? ""}`} style={style}>
            {children}
        </div>
    )
}