Error
Validation
Prefix & Suffix
Placeholder
Description
Character count
Size
On touch devices
Line-height is clamped alongside the font because xs and s resolve
--line-height-body-s to 16.88px on mobile — 16px glyphs would otherwise sit
in a line box barely taller than themselves.
Nothing changes on a mouse pointer, and l and xl are untouched either way:
they already cleared 16px. The visible consequence is that xs, s and m
render the same text size on a phone and differ by height alone, which is how
iOS treats its own text fields.
The floating label and the value are positioned from where their ink falls —
cap height, baseline and descender — so the pair stays optically centred at
whatever size and height the clamps produce.
Variants
Loading
Focus ring
Built on Input
- NumberInput — steppers, min/max/step, and a numeric onChange
- OTPInput — one box per digit, with paste and an onComplete
- PasswordInput — a reveal toggle
- TagInput — an array of removable chips instead of a string