mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
17 lines
432 B
TypeScript
17 lines
432 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);
|
|
}}
|
|
style={{ width: "100%" }}
|
|
>{currentValue}</textarea>
|
|
)
|
|
}
|