‮Skip to content‬
uiify

Input

‮Single-line text field built on the native input element.‬

‮Browsers‬
Chrome 123+Firefox 121+Safari 17.5+
‮Tier‬
0
‮Bundle compressed‬
331 B
‮Forced layout budget‬
0 ms
‮Axe budget‬
0
‮SSR compatible‬
‮Yes‬
‮Published contract‬
‮Test harness‬

‮Playground‬

Input

‮Default‬

‮Disabled‬

Invalid

‮API‬

Input

‮Prop‬‮Type‬‮Default‬‮Description‬
valuestring—‮Current value, making the input controlled.‬
defaultValuestring—‮Starting value for the uncontrolled input, which the native element then owns.‬
onValueChange(value: string) => void—‮Called with the new value whenever the input changes.‬
disabledbooleanfalse‮Disables the native input and sets the data-disabled attribute.‬
readOnlybooleanfalse‮Makes the value read-only while keeping the input focusable.‬
invalidbooleanfalse‮Marks the input invalid via aria-invalid and the data-invalid attribute.‬

‮Keyboard‬

‮Key‬‮Action‬
Tab‮Move focus to/from the control‬
Enter / Space‮Activate when focused (button-like controls)‬

‮Accessibility‬

‮Uses semantic HTML where possible. Inspect rendered markup in the playground — ARIA is added only when native elements are insufficient.‬

‮Styling hooks‬

data-disabled