mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
19 lines
473 B
TypeScript
19 lines
473 B
TypeScript
interface FormTextAreaProps {
|
|
id?: string;
|
|
currentValue: string;
|
|
onBlur?(newValue: string): void;
|
|
rows: number;
|
|
}
|
|
export default function FormTextArea({ id, onBlur, rows, currentValue }: FormTextAreaProps) {
|
|
return (
|
|
<textarea
|
|
id={id}
|
|
rows={rows}
|
|
onBlur={(e) => {
|
|
onBlur?.(e.currentTarget.value);
|
|
}}
|
|
style={{ width: "100%" }}
|
|
>{currentValue}</textarea>
|
|
)
|
|
}
|