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

PropTypeDefaultDescription
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.
disabledbooleanfalseDisables the native input and sets the data-disabled attribute.
readOnlybooleanfalseMakes the value read-only while keeping the input focusable.
invalidbooleanfalseMarks the input invalid via aria-invalid and the data-invalid attribute.

Keyboard

KeyAction
TabMove focus to/from the control
Enter / SpaceActivate 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