Textarea API
API documentation for Textarea component
Textarea#
Props#
Defines valid properties in Textarea component.
Exposes#
Defines the methods and properties exposed by Textarea component.
| name | type | default | description |
|---|---|---|---|
| fluid | FluidInstance | null | The Fluid component instance. |
| onInput | (event: FormEvent<HTMLTextAreaElement>) => void | null | Event handler for input events on the textarea. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Textarea component.
| name | type | default | description |
|---|---|---|---|
| root | TextareaPassThroughType<InputHTMLAttributes<HTMLInputElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of Textarea component.
| values |
|---|
| ComponentInstance<TextareaProps, TextareaState, TextareaExposes> |
useTextarea#
Props#
Defines valid properties in useTextarea.
| name | type | default | description |
|---|---|---|---|
| autoResize | boolean | false | When present, height of textarea changes as being typed. |
Exposes#
Defines the methods and properties exposed by useTextarea.
| name | type | default | description |
|---|---|---|---|
| onInput | (event: FormEvent<HTMLTextAreaElement>) => void | null | Event handler for input events on the textarea. |
Types#
Instance
Instance of useTextarea headless.
| values |
|---|
| HeadlessInstance<useTextareaProps, useTextareaState, useTextareaExposes> |