Inputs
Text field
A text field takes a short typed value, such as a description or an amount, under a label that stays visible above it; use it when the answer can't be picked from a list.
In kanso-ui as TextField
Live in kanso-ui
TextField from kanso-ui as it draws today, in Kanso’s tokens. Press, hover and tab through it: the shapes, the springs and the sizes are the library’s own.
Enter an amount, like 12.50
The design
The Kanso design system's own drawing of it, in HTML and CSS with kanso-ui's tokens: the look kanso-ui's component moves to with its family's release.
When to use
- Use it for free text or a number: a description, an amount, a note; the multiline variant for more than a line.
- Don't use it to pick from known options: use Select for a list that grows, RadioGroup for two to five options in view. To find things, use SearchField.