Skip to content



Input is a single-line text field. It's one of the basic components for all kinds of forms, search fields, etc.

Other input types for entering certain data:


The input has two sizes.

Input sizes
Size (height in px)Appearance example
M (28px)
L (40px)


We recommend adding a visible text label to the input wherever possible. If the input isn’t required, be sure to mark it with the "optional" text label.

Input text label sizes
Size (height in px)Text sizeAppearance exampleMargins
M (28px)14px (use --fs-200, --lh-200 tokens)
L (40px)16px (use --fs-300, --lh-300 tokens)


Addon is a slot inside the input field – to the left and right of the text – for placing icons, badges, counters, etc. Addon can be non-clickable and clickable.

  • When adding an icon before the text (leading addon), use a non-clickable icon. This icon is usually colored to match the text or a different color based on the purpose it serves.
  • When adding an addon after the text (trailing addon), you have various options such as a clickable icon, a counter, a badge, a spinner, an icon button, or a link. The clickable icon should have the --icon-secondary-neutral color. When hovering over it, the color changes to the darker one with CSS filter, and the cursor changes to pointer.
Input addon indents and sizes
Input sizeIcon sizeAddon's indentsAddon's minimum width
MM size
LM size


When two addons are stacked together, their indents will be divided in half. This ensures that there is a sufficient clickable zone (touch target) around each addon.



Use read-only state for component that cannot be interacted with, except for copy its value. Also use it for links which might be copied.

Use disabled state if you need to show affect of one component to another.

Input states

Input types

For live examples of the input types, refer to Example tab.

Search input

The search input can have a non-clickable icon before the text and the icon for clearing the value after the text.

Input with a counter

You can place Counter inside the input or next to its label. Counter usually shows the number of available characters, limits, etc. The counter is usually non-clickable.


Please don’t use the Tag component for the counter. It has a different purpose and functionality.

Input with counter
Size (height in px)Counter next to the input's labelCounter inside the input
M (28px)
L (40px)

Usage in UX/UI

  1. Use input fields only for single-line information. If you need to enter a lot of data, use a Textarea instead.
  2. Label the inputs clearly, so users can quickly understand what data needs to be entered.
  3. Select an appropriate width for the input field based on the content to be entered. For example, if it's for a phone number, the input width shouldn't be wider than what is expected for a phone number.

Released under the MIT License.

Released under the MIT License.