TextArea Appearance
The TextArea provides predefined appearance options such as different sizes, border radiuses and fill modes.
The following example demonstrates all available appearance options of the TextArea in action.
Size
The TextArea allows you to set different padding on the internal <textarea> element. To achieve this utilize the size property. It accepts values of type InputSize or none.
The size option supports the following values:
smallmedium(Default)largenone—Removes the built-in sizing styles, allowing you to fully customize thepadding.
The following example demonstrates how to define the size of the TextArea.
Roundness
The TextArea enables you to apply different border radius to the component through the rounded property. It accepts values of type InputRounded or none.
The rounded option supports the following values:
small—Sets the border radius of the TextArea to2px.medium(default)—Sets the border radius of the TextArea to4px.large—Sets the border radius of the TextArea to6px.full—Sets the border radius of the TextArea track to9999px.none—The none option removes the built-in roundness of the TextArea. Allows for custom border radius.
The following example demonstrates how to define the border radius of the TextArea.
Fill Mode
The TextArea allows you to set different fill modes by using the fillMode property. It accepts values of type InputFillMode or none.
The fillMode option supports the following values:
flat—Sets atransparent backgroundandsolid bottom border.solid(default)—Applies abackgroundcolor andsolid borders.outline—Sets atransparent backgroundandsolid borders.none—The none option removes the built-in fill mode styles of the TextArea. Allows for custombackgroundandborderstyles.
The following example demonstrates how to define the fill mode of the TextArea.