mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
feat(react/widgets): set up form group
This commit is contained in:
17
apps/client/src/widgets/react/FormGroup.tsx
Normal file
17
apps/client/src/widgets/react/FormGroup.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user