Textfield

Text fields are very important components in a UI; they can be used to accept different kinds of information from users. The design of the text field is inspired by Material UI with some changes.

Examples

Default

Text Field has two variants: filled and outlined.


Leading icon

Leading icons can be used to display type type of the text field. Adding a click action to the leading icon isn’t recommended; if you need an icon with a click action, use a trailing icon instead.


Trailing icon

Trailing icons can be used to indicate the status of the input text field or trigger a specific action. Action must be relative to its text field; don’t add non-relative actions.


Floating label

You can use a floating label to display some short label directly over the input element. Always use short and descriptive text for floating labels. The label will be floated when the input gets focused or it’s not empty.

Use both floating label leading icon

Prefix text

https://
https://

Suffix text

@mail.com
@mail.com

Supporting text

Supporting text can be used to display some important information or error messages to users. In this example, simple password validation is used to display an error message in the supporting text.

Enter a secure password

Customization

Supported Classes

Supported Tokens

Last modified: Oct 19, 2025: refactor(docs): Reorganize the folder structure of component examples (8271c2e)