FactuGES_ERP/apps/web/src/development/ui-kit/sections/ui-kit-section.tsx
david c28a5e02c3 feat: add RdxContextPanel and related tests for context management
feat: implement RdxEditor components including layout, section, and sticky footer with tests

feat: introduce RdxFormGrid for form layout management

feat: create RdxPage components for structured page layout with actions and headers

feat: add RdxRowActions for handling row-level actions with dropdown support
2026-08-11 00:01:33 +02:00

29 lines
681 B
TypeScript

import { cn } from "@repo/shadcn-ui/lib/utils";
import type { ReactNode } from "react";
interface UiKitSectionProps {
id: string;
title: string;
description?: ReactNode;
children: ReactNode;
className?: string;
}
export const UiKitSection = ({
id,
title,
description,
children,
className,
}: UiKitSectionProps) => {
return (
<section className={cn("space-y-4", className)} id={id}>
<div className="space-y-1">
<h2 className="text-lg font-semibold tracking-tight text-foreground">{title}</h2>
{description ? <p className="text-sm text-muted-foreground">{description}</p> : null}
</div>
{children}
</section>
);
};