Basic usage
Props
string
The label text displayed above the input field.
string
Helper text displayed below the input field.
string
Error message to display. When provided, the input shows an error state.
boolean
Whether the input is disabled.
ReactNode
Icon element to display at the start of the input.
ReactNode
Icon element to display at the end of the input.
boolean
When true, displays “(optional)” text next to the label.
string
Text prefix to display before the input value.
string
Text suffix to display after the input value.
string | number
Width of the input container.
Array<{ label: string; onRemove?: () => void }>
Array of chip objects to display inside the input field.
number
default:"2"
Maximum number of chips to display before showing overflow count.
string
Tooltip text to display next to the label.
'default' | 'borderless'
default:"'default'"
The visual variant of the input field.
'small' | 'large'
default:"'large'"
The size of the input field.
RefObject<HTMLDivElement | null>
Ref to the input wrapper container element.
string
Additional CSS classes to apply to the input element.
With label and helper text
Optional field
With validation error
With icons
With prefix and suffix
With chips
With info tooltip
Size variants
Borderless variant
Disabled state
Custom width
Accessibility
- The input field includes proper
aria-invalidattribute when in error state. - Labels are properly associated with their input elements.
- Helper text and error messages are announced to screen readers.
- The info tooltip icon has appropriate keyboard navigation support.