UI Library

Prop Type Default Value Notes
autocompletestring?'current-password'
Native autocomplete token.
classNamestring?''
Extra classes for the input.
clearLabelstring?'Clear'
Accessible name for the clear button.
clearPlacement'auto' | 'inside' | 'outside''auto'
Inside overlays the field edge; outside sits after it; auto renders outside because the toggle owns the right edge.
clearablebooleanfalse
Appends a cross button that clears the value.
defaultValuestring?''
Baseline the clear button compares against; the cross hides while the value matches it.
disabledbooleanfalse
Disables the field and the toggle.
hideLabelstring?—
Toggle label when visible; falls back to the locale.
hideOutlinebooleanfalse
Drops the field’s border and focus border while keeping its surface, padding, and text metrics.
idstring?—
Native input id.
namestring?—
Native input name.
placeholderstring?—
Placeholder text.
ratiosPasswordInputRatioOverrides?—
Partial override of the field and eye-toggle ratios; the line box follows the font.
requiredbooleanfalse
Native required flag.
showLabelstring?—
Toggle label when hidden; falls back to the locale.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Control scale; numbers are icon-scale pixels scaled by fixed ratios.
valuestring''
Bindable field value; the eye resets it to empty.
onClear() => voidclears value—Clear handler; falls back to clearing the bound value when omitted.
oninput(event: Event) => void——Native input handler.