Files
wehub-resource-sync 221778fa98
rowboat / apps/x Vitest suites (push) Has been cancelled
rowboat / apps/x Electron package smoke test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:33:34 +08:00

22 lines
493 B
TypeScript

import { Divider } from "@heroui/react";
import { Label } from "./label";
export function FormSection({
label,
children,
showDivider = false,
}: {
label?: string;
children: React.ReactNode;
showDivider?: boolean;
}) {
return (
<>
<div className="flex flex-col gap-2">
{label && <Label label={label} />}
{children}
</div>
{showDivider && <Divider className="my-4" />}
</>
);
}