For more examples, visit the Storybook.

Example
<StudsTextarea placeholder="Type your message here." />

StudsTextarea Props

placeholder
string

The placeholder text for the textarea.

value
string

The controlled value of the textarea.

defaultValue
string

The default value of the textarea.

disabled
boolean
default:"false"

If true, the textarea will be disabled.

readOnly
boolean
default:"false"

If true, the textarea will be read-only.

rows
number
default:"3"

The number of rows for the textarea.

cols
number
default:"20"

The number of columns for the textarea.

maxLength
number

The maximum length of the textarea.

minLength
number

The minimum length of the textarea.

autoFocus
boolean
default:"false"

If true, the textarea will be focused automatically.

required
boolean
default:"false"

If true, the textarea is required.