Spaces:
Sleeping
Sleeping
File size: 763 Bytes
f871fed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | "use client"
import { ReactNode } from "react"
import { Label } from "@/components/ui/label"
import { cn } from "@/lib/utils"
interface FormSectionProps {
title: string
description?: string
children: ReactNode
className?: string
}
export function FormSection({
title,
description,
children,
className
}: FormSectionProps) {
return (
<div className={cn("mb-6 last:mb-0", className)}>
<div className="mb-4">
<Label className="text-base font-medium block mb-1">
{title}
</Label>
{description && (
<p className="text-sm text-muted-foreground">
{description}
</p>
)}
</div>
<div className="space-y-3">
{children}
</div>
</div>
)
}
|