Input
Input is a UI element that lets users input single line text.
Installation
Base UI components are all available as a single package.
npm install @base-ui-components/react
Once you have the package installed, import the component.
import { Input } from '@base-ui-components/react/input';
Anatomy
<Input />
renders an <input>
, enhanced with field context when placed inside a Field
.
<Input />
API Reference
Input
Prop | Type | Default | Description |
---|---|---|---|
className | union | Class names applied to the element or a function that returns them based on the component's state. | |
render | union | A function to customize rendering of the component. |