15 lines
302 B
TypeScript
15 lines
302 B
TypeScript
interface FieldProps {
|
|
label: string;
|
|
children: React.ReactNode;
|
|
tooltip?: string;
|
|
}
|
|
|
|
export const Field = (props: FieldProps) => {
|
|
return (
|
|
<div className="flex flex-col gap-1">
|
|
<label className="text-zinc-400 text-sm">{props.label}</label>
|
|
{props.children}
|
|
</div>
|
|
);
|
|
};
|