Inputs
Select
A select picks one value from a list that is long or keeps growing, such as the project a payment belongs to, in the platform's own picker.
In kanso-ui as Select
Anatomy
- Label (
k-field__label): above the field, always visible. - Field (
k-field__inputon a native<select>): the chosen option inink. - Trail icon (
k-field__trail):expand_moreat 20px inink. It is decorative and lets taps through to the select. - Helper text (
k-field__help, optional). - Option list: drawn by the platform, a sheet or a wheel on phones and a dropdown on the web.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-field | gap | 6px |
min-width | 0 |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
paper | --kui-color-paper | #fafafa | #121212 |
surface | --kui-color-kanso-surface | #ffffff | #1c1c1c |
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
outline | --kui-color-outline | #8a8a8a | #8c8c8c |
critical | --kui-color-critical | #b3261e | #f2b8b5 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
radius-md | --kui-radius-kanso-md | 12px | 12px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
size-control-md | --kui-sizing-kanso-control-md | 40px | 40px |
size-icon-md | --kui-sizing-kanso-icon-md | 20px | 20px |
font-plain | --kui-typography-font-family-plain | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif |