Jone

Input

A high-quality, unstyled React input component.

A native input element that automatically works with Field.

Usage guidelines

  • Form controls must have an accessible name: It can be created using a <label> element or the Field component. See the forms guide.

Anatomy

Import the component and use it as a single part:

Anatomy
import { Input } from '@base-ui/react/input';

<Input />;

API reference

Root

NameTypeDefaultDescription
onValueChangeOptionalField.Control.Props['onValueChange'] | undefinedCallback fired when the `value` changes. Use when controlled.
defaultValueOptionalField.Control.Props['defaultValue'] | undefinedThe default value of the input. Use when uncontrolled.
valueOptionalReact.ComponentProps<'input'>['value'] | undefinedThe value of the input. Use when controlled.

On this page