mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import { ComponentChildren } from "preact";
|
|
|
|
interface FormGroupProps {
|
|
label: string;
|
|
children: ComponentChildren;
|
|
}
|
|
|
|
export default function FormGroup({ label, children }: FormGroupProps) {
|
|
return (
|
|
<div className="form-group">
|
|
<label style={{ width: "100%" }}>
|
|
{label}
|
|
{children}
|
|
</label>
|
|
</div>
|
|
);
|
|
} |