feat: Implement foundational UI components (Button, Card) and layout components (Section, Container), updating design tokens, styling, and documentation.

This commit is contained in:
1elle1
2026-02-01 14:13:39 +01:00
parent f7ac3d6a99
commit 643231b7b0
12 changed files with 357 additions and 55 deletions

View File

@@ -0,0 +1,21 @@
import type { ElementType, ReactNode } from "react";
interface ContainerProps {
children: ReactNode;
className?: string;
as?: ElementType;
}
export function Container({
children,
className = "",
as: Tag = "div",
}: ContainerProps) {
return (
<Tag
className={`mx-auto w-full max-w-[var(--container-max-width)] px-[var(--container-padding-x)] ${className}`.trim()}
>
{children}
</Tag>
);
}