Files
sportbox-reutte-2026-01-30-v1/components/ui/Container.tsx

20 lines
415 B
TypeScript

interface ContainerProps {
children: React.ReactNode;
className?: string;
as?: "div" | "section" | "article";
}
export function Container({
children,
className = "",
as: Component = "div",
}: ContainerProps) {
return (
<Component
className={`mx-auto w-full max-w-[var(--spacing-container)] px-[var(--spacing-container-padding)] ${className}`}
>
{children}
</Component>
);
}