Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
Specifies what if any permission the browser has to provide for automated assistance in filling out form field values, as well as guidance to the browser as to the type of information expected in the field. Refer to this page for additional information.
The disabled state of the component.
Hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
Sets the control into invalid state (visual state only).
The label for the control.
The maximum number of characters (UTF-16 code units) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters.
The minimum number of characters (UTF-16 code units) required that the user should enter.
The name attribute of the control.
Whether the control will have outlined appearance.
The placeholder attribute of the control.
Makes the control a readonly field.
Controls whether the control can be resized.
When auto is set, the control will try to expand and fit its content.
The number of visible text lines for the control. If it is specified, it must be a positive integer. If it is not specified, the default value is 3.
Controls whether the element may be checked for spelling errors.
Enables validation rules to be evaluated without restricting user input. This applies to the maxLength property
when it is defined.
Indicates how the control should wrap the value for form submission. Refer to this page on MDN for explanation of the available values.
StaticstylesStatic ReadonlytagThe tagName read-only property of the Element interface returns the tag name of the element on which it's called.
The initial value of the component.
Returns the HTMLFormElement associated with this element.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Checks for validity of the control and emits the invalid event if it invalid.
Checks for validity of the control and shows the browser message if it invalid.
The scrollTo() method of the Element interface scrolls to a particular set of coordinates inside a given element.
Selects all text within the control.
Sets a custom validation message for the control.
As long as message is not empty, the control is considered invalid.
Replaces the selected text in the control.
Sets the text selection range of the control
Staticregister
This element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
Element
igc-textarea
Slot
Slot
prefix - Renders content before the input.
Slot
suffix - Renders content after input.
Slot
helper-text - Renders content below the input.
Slot
value-missing - Renders content when the required validation fails.
Slot
too-long - Renders content when the maxlength validation fails.
Slot
too-short - Renders content when the minlength validation fails.
Slot
custom-error - Renders content when setCustomValidity(message) is set.
Slot
invalid - Renders content when the component is in invalid state (validity.valid = false).
Fires
igcInput - Emitted when the control receives user input.
Fires
igcChange - Emitted when the a change to the control value is committed by the user.
Csspart
container - The main wrapper that holds all main input elements of the textarea.
Csspart
input - The native input element of the igc-textarea.
Csspart
label - The native label element of the igc-textarea.
Csspart
prefix - The prefix wrapper of the igc-textarea.
Csspart
suffix - The suffix wrapper of the igc-textarea.
Csspart
helper-text - The helper text wrapper of the igc-textarea.