Skip to content

Input

Input allows a user to provide text based input in different formats. They are usually found within a form but can also be part of a modal, search, or card.

Usage

When the expected text input is a single line as opposed to a paragraph.

It supports different types of input formats like text, number, password, email, tel, URL and more.

Input datatypes

Element design system offers specific components for:

When to use

  • When the expected user input is a single line of text or numerical values.
  • When there is a need to enter text.
  • Common text input types include user names, descriptions, URLs, emails, addresses, and plain text searches.

Best practices

  • When the expected user input is more than one line use the textarea component instead.
  • Distinguish between editable vs. read-only fields.
  • Differentiate between required and optional fields.
  • Maintain a proper field size, according to each specific case.
  • Define the width of the input field according the content and the grid system.
  • Do not use single-line text fields for longer input texts.

Except where otherwise noted, content on this site is licensed under MIT License.