@sqlrooms/ui / UseAutoResizeTextareaOptions
Interface: UseAutoResizeTextareaOptions
Options for useAutoResizeTextarea.
Properties
autoResize
autoResize:
boolean
Whether auto-resize is active. When false, the hook is a no-op.
textareaRef
textareaRef:
RefObject<HTMLTextAreaElement|null>
Ref to the textarea to measure and resize. May point to a textarea rendered by a component the caller does not own.
value?
optionalvalue?:string|number| readonlystring[]
The textarea's current controlled value, if any.
defaultValue?
optionaldefaultValue?:string|number| readonlystring[]
The textarea's uncontrolled default value, if any.