0
Components
API reference

Input

A surface-first text input built on Base UI's Input primitive, with filled and outlined variants, shapes, sizes, leading addons, and inline button/badge support.

Installation

Usage

Examples

Outline

Rounded

Small

Large

With Leading Icon

Password Toggle

Invalid

Disabled

File

API Reference

Input

Wraps Base UI Input inside a styled container that automatically sizes trailing buttons, badges, and leading addons.

PropTypeDefaultDescription
variant"filled" | "outline" | "outlined""filled""filled" uses a solid tonal surface; "outline" adds an inset border
shape"pill" | "round" | "rounded" | "square""pill"Border-radius shape of the container and nested buttons/badges
size"sm" | "default" | "md" | "lg" | number"default"Height and padding preset; pass a number to forward the HTML size attribute
startAddonReact.ReactNode-Leading element (such as an icon) rendered before the input
childrenReact.ReactNode-Trailing elements (buttons, badges, icons) rendered inside the container
unstyledbooleanfalseSuppresses default variant styling on the outer wrapper
nativeInputbooleanfalseRenders a plain <input> instead of Base UI's Input primitive
classNamestring-Additional CSS classes applied to the outer container
...propsBase UI Input props-All standard input attributes (type, disabled, aria-invalid, etc.)

inputVariants

A cva helper exported for composing consistent input surfaces in other components (such as AutocompleteInput).

© taut ui — built with Base UI and Tailwind CSS v4.