mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
|
|
interface FormTextAreaProps {
|
||
|
|
currentValue: string;
|
||
|
|
onBlur?(newValue: string): void;
|
||
|
|
rows: number;
|
||
|
|
}
|
||
|
|
export default function FormTextArea({ onBlur, rows, currentValue }: FormTextAreaProps) {
|
||
|
|
return (
|
||
|
|
<textarea
|
||
|
|
rows={rows}
|
||
|
|
onBlur={(e) => {
|
||
|
|
onBlur?.(e.currentTarget.value);
|
||
|
|
}}
|
||
|
|
>{currentValue}</textarea>
|
||
|
|
)
|
||
|
|
}
|