mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
feat(react/dialogs): port clone_to
This commit is contained in:
@@ -2,16 +2,21 @@ import { ComponentChildren } from "preact";
|
||||
|
||||
interface FormGroupProps {
|
||||
label: string;
|
||||
title?: string;
|
||||
className?: string;
|
||||
children: ComponentChildren;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default function FormGroup({ label, children }: FormGroupProps) {
|
||||
export default function FormGroup({ label, title, className, children, description }: FormGroupProps) {
|
||||
return (
|
||||
<div className="form-group">
|
||||
<div className={`form-group ${className}`} title={title}>
|
||||
<label style={{ width: "100%" }}>
|
||||
{label}
|
||||
{children}
|
||||
</label>
|
||||
|
||||
{description && <small className="form-text text-muted">{description}</small>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user