edbnedbn/ui
Get Started
WelcomeWhy We're DifferentChoosing a VariantChangelogLicense
Components
OverviewAlert DialogCheckboxCollapsibleDialogFieldInput
MenuNumber FieldPopoverProgressRadioScroll AreaSelectSeparatorSliderSwitchTabsToggleTooltip
Shared Components
InputTextareaCardAvatarTableAlertBreadcrumbPagination
0installs
Components
Maps
GitHub stars
HomeDocsComponentsStaticInput

On this page

Input

A native input element with consistent styling. Built on Base UI Input primitives.

Usage

import { InputRoot } from "@/components/ui/static/input"
<InputRoot type="email" placeholder="Email" />

Installation

Install dependencies

TypeScript
npm install @base-ui/react

Examples

Input Types

With Icons

States

Login Form

Login

API Reference

typestring
="text"

The input type.

placeholderstring

Placeholder text.

disabledboolean
=false

Whether the input is disabled.

defaultValuestring | number

The default value when uncontrolled.

onValueChange(value: string) => void

Callback fired when the value changes.