sendou.ink/app/components/form/FormFieldset.tsx
Kalle dd1adad94b
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
BIome v2 upgrade
2025-06-22 16:49:27 +03:00

26 lines
481 B
TypeScript

import type * as React from "react";
import { RemoveFieldButton } from "./RemoveFieldButton";
export function FormFieldset({
title,
children,
onRemove,
}: {
title: string;
children: React.ReactNode;
onRemove: () => void;
}) {
return (
<fieldset className="w-min">
<legend>{title}</legend>
<div className="stack sm">
{children}
<div className="mt-4 stack items-center">
<RemoveFieldButton onClick={onRemove} />
</div>
</div>
</fieldset>
);
}