Examples
Default
Error Without Message
Side Label (all sizes)
Without Label
All States
Props
TextField
A text input field with optional label, helper/error text, icon slots, and side labels. UseleftLabel / rightLabel for fixed unit or prefix affordances (currency symbol, country code, domain suffix). Provide at least one of label, aria-label, or aria-labelledby for accessibility — a console warning is emitted in development if none are set.
Trailing interactive element pinned to the right edge — typically a
Chip or Button (the “with button” field type). Reduces the right padding so the control sits flush, and clicks on it do not steal focus from the input.Fixed, non-editable label pinned inside the left edge of the field — for a prefix such as a currency symbol or country code.
Fixed, non-editable label pinned inside the right edge of the field — for a unit or suffix such as a currency code or domain.
Exported types
Also exported from@fanvue/ui: TextFieldProps, TextFieldSize.
Setup: Installation · Theming