Skip to main content

Textbox Component

A textbox allows the user to enter data.

The purpose of a textbox (also known as a text field or text input) is to collect form data. Therefore, textbox should typically be used in conjunction with a form, label and submit button.

The native <input> and <textarea> elements have an implicit textbox role and provide built-in keyboard and accessibility support. Any custom implementations must not override these default browser behaviors.