TextArea

A standard textarea (multi line text box)

Installation

import { TextArea } from 'uxp/components';

Signature

const TextArea: React.ForwardRefExoticComponent<React.RefAttributes<ITextAreaInstanceProps> & ITextAreaProps>

Properties

Name
Type
Mandatory
Default Value
Example Value

value

string

Yes

-

-

onChange

(value: string) => void

Yes

-

-

onFocus

() => void

No

-

-

onBlur

(vale: string) => void

No

-

-

onKeyDown

(e: React.KeyboardEvent, val: string) => void

No

-

-

className

string

No

-

-

styles

React.CSSProperties

No

-

-

readOnly

boolean

No

-

-

tabIndex

number

No

-

-

rows

number

No

-

-

cols

number

No

-

-

spacingMode

No

-

-

Ref Handlers

Available methods through ref:

Method
Type
Description

focus

() => void

focus the input

getElement

() => React.MutableRefObject

this will return the element

Last updated