Text Input

Text 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 { TextInput } from '@base-ui-components/react/text-input';

Anatomy

<TextInput /> renders an <input>, enhanced with field context when placed inside a Field.

<TextInput />

API Reference

TextInput

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