Installation
- CLI
- Manual
Usage
Examples
Default
With Label
Disabled
With Validation Error
File Input
Password Input
Number Input
Search Input
API Reference
Input
Extends all props from@base-ui/react Input component and native HTML input attributes.
The type of input field.Supports all HTML input types:
text, email, password, number, tel, url, search, date, time, file, etc.Placeholder text displayed when the input is empty.
Whether the input is disabled.
Indicates the input has a validation error. Applies error styling.
Additional CSS classes to apply to the input.
Controlled value of the input.
Default uncontrolled value of the input.
Callback fired when the input value changes.
TypeScript
Styling Features
- Focus ring with customizable ring color
- Error state styling via
aria-invalid - Disabled state with reduced opacity
- Selection styling with primary color
- Dark mode support
- File input styling with custom button appearance
- Shadow effects for depth
