website refactor

This commit is contained in:
2026-01-17 15:46:55 +01:00
parent 4d5ce9bfd6
commit 72a626ce71
346 changed files with 19308 additions and 8605 deletions

View File

@@ -0,0 +1,33 @@
import React, { ReactNode } from 'react';
import { Stack } from './Stack';
import { Text } from './Text';
interface FormSectionProps {
children: ReactNode;
title?: string;
}
/**
* FormSection
*
* Groups related form fields with an optional title.
*/
export function FormSection({ children, title }: FormSectionProps) {
return (
<Stack gap={4} fullWidth>
{title && (
<Text
size="xs"
weight="bold"
color="text-gray-500"
className="uppercase tracking-widest border-b border-border-gray pb-1"
>
{title}
</Text>
)}
<Stack gap={4} fullWidth>
{children}
</Stack>
</Stack>
);
}