New to Kendo UI for Angular? Start a free 30-day trial

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.

Example
View Source
Edit In Stackblitz  
Change Theme:

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:

  • small—Sets the padding of the internal <textarea> element to 2px 8px.
  • medium (default)—Sets the padding of the internal <textarea> element to 4px 8px.
  • large—Sets the padding of the internal <textarea> element to 6px 8px.
  • none—The none option removes the built-in sizing of the TextArea. Allows for custom padding.

The following example demonstrates how to define the size of the TextArea.

Example
View Source
Edit In Stackblitz  
Change Theme:

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 to 1px.
  • medium (default)—Sets the border radius of the TextArea to 2px.
  • large—Sets the border radius of the TextArea to 4px.
  • full—Sets the border radius of the TextArea track to 9999px.
  • 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.

Example
View Source
Edit In Stackblitz  
Change Theme:

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 a transparent background and solid bottom border.
  • solid (default)—Applies a background color and solid borders.
  • outline—Sets a transparent background and solid borders.
  • none—The none option removes the built-in fill mode styles of the TextArea. Allows for custom background and border styles.

The following example demonstrates how to define the fill mode of the TextArea.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?