Skip to main content

Textarea

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

Textareas allow users to enter and edit multi-line text input, making it perfect for forms that require longer entries.

Textarea - Code

Basic​

Disabled​

Readonly​

Resize behavior​

Validation​

API for ix-textarea​

Properties​

Description

Determines if the textarea field is disabled.

Attribute
disabled
Type
boolean
Default
false
Description

The helper text for the textarea field.

Attribute
helper-text
Type
string | undefined
Description

The info text for the textarea field.

Attribute
info-text
Type
string | undefined
Description

The error text for the textarea field.

Attribute
invalid-text
Type
string | undefined
Description

The label for the textarea field.

Attribute
label
Type
string | undefined
Description

The maximum length of the textarea field.

Attribute
max-length
Type
number | undefined
Description

The minimum length of the textarea field.

Attribute
min-length
Type
number | undefined
Description

The name of the textarea field.

Attribute
name
Type
string | undefined
Description

The placeholder text for the textarea field.

Attribute
placeholder
Type
string | undefined
Description

Determines if the textarea field is readonly.

Attribute
readonly
Type
boolean
Default
false
Description

Determines if the textarea field is required.

Attribute
required
Type
boolean
Default
false
Description

Determines the resize behavior of the textarea field.

Resizing can be enabled in one direction, both directions or completely disabled.

Attribute
resize-behavior
Type
"both" | "horizontal" | "none" | "vertical"
Default
'both'
Description

Determines if the text should be displayed as a tooltip.

Attribute
show-text-as-tooltip
Type
boolean | undefined
Description

The width of the textarea specified by number of characters.

Will be overridden by textareaWidth prop if both are set.

Attribute
textarea-cols
Type
number | undefined
Description

The height of the textarea field (e.g. "52px").

Will take precedence over textareaRows prop if both are set.

Attribute
textarea-height
Type
string | undefined
Description

The height of the textarea specified by number of rows.

Will be overridden by textareaHeight prop if both are set.

Attribute
textarea-rows
Type
number | undefined
Description

The width of the textarea field (e.g. "200px").

Will take precedence over textareaCols prop if both are set.

Attribute
textarea-width
Type
string | undefined
Description

The valid text for the textarea field.

Attribute
valid-text
Type
string | undefined
Description

The value of the textarea field.

Attribute
value
Type
string
Default
''
Description

The warning text for the textarea field.

Attribute
warning-text
Type
string | undefined

Methods​

Events​

Description

Event emitted when the textarea field loses focus.

Event
ixBlur
Detail
void
Description

Event emitted when the textarea field loses focus and the value has changed.

Event
ixChange
Detail
string
Description

Event emitted when the validity state of the textarea field changes.

Event
validityStateChange
Detail
ValidityState
Description

Event emitted when the value of the textarea field changes.

Event
valueChange
Detail
string