Input

Input is a UI element that lets users input single line text.

Give FeedbackBundle Size
index.tsx

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

PropTypeDefaultDescription
classNameunionClass names applied to the element or a function that returns them based on the component's state.
renderunionA function to customize rendering of the component.

Contents