Text input
Inputs enable the user to interact with and input text-based data. This element can be used for long and short-form entries.
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-input
The soul design system provides two input sizes - Medium and small- and only one text area size.

The minimum height of the text area has to cover two lines of text.
States
Section titled “States”Both text inputs are represented by states helping a user to understand the action he can provide.


-
Enabled In most cases, the inactive state is a default state. An exception could be made when you need to speed up an obvious flow. For example, when a user opens a select with a search, the search is immediately focused.
-
Focus A focused state communicates when a user has highlighted an element, using a keyboard or mouse and it is possible to enter a value.
-
Error An error state communicates a user or system mistake.
-
Not editable (Input only) Not editable state shows to users a specific type of information, eg. URL address, without an option to edit it. It’s often combined with a button to copy this information to the clipboard.
-
Disabled Text input in a disabled state indicates that an option exists but is not available given the circumstances. This can be used to maintain the layout’s continuity and communicate that action may become available in the future. A disabled text input requires a tooltip explaining why the option is disabled.
-
Filled The state after a user enters a value and left the text input.
Typography
Section titled “Typography”Text input title and placeholder text should be set in sentence case, with only the first word in a phrase and any proper nouns capitalized. The text input title should be four words or less.
| Font-size (px) | Font-weight | |
|---|---|---|
| Title | 11 | Regular |
| Placeholder / Content | 13 | Regular |