chore(react/ribbon): port search string

This commit is contained in:
Elian Doran
2025-08-24 15:29:07 +03:00
parent 0c8bfc39ef
commit c1b30db3d1
6 changed files with 72 additions and 50 deletions

View File

@@ -3,16 +3,20 @@ interface FormTextAreaProps {
currentValue: string;
onBlur?(newValue: string): void;
rows: number;
className?: string;
placeholder?: string;
}
export default function FormTextArea({ id, onBlur, rows, currentValue }: FormTextAreaProps) {
export default function FormTextArea({ id, onBlur, rows, currentValue, className, placeholder }: FormTextAreaProps) {
return (
<textarea
id={id}
rows={rows}
className={`form-control ${className ?? ""}`}
onBlur={(e) => {
onBlur?.(e.currentTarget.value);
}}
style={{ width: "100%" }}
placeholder={placeholder}
>{currentValue}</textarea>
)
}