edbnedbn/ui
Get Started
WelcomeWhy We're DifferentChoosing a VariantChangelogLicense
Components
OverviewAlert DialogCheckboxCollapsibleDialogFieldInputMenuNumber FieldPopoverProgressRadioScroll AreaSelectSeparatorSliderSwitchTabsToggleTooltip
Shared Components
Input
TextareaCardAvatarTableAlertBreadcrumbPagination
0installs
ComponentsMaps
GitHub stars
HomeDocsComponentsSharedInput

On this page

Input (Shared)

Styled input with focus ring, validation states, and file input support. Built on Base UI Input primitive.

Overview

Input wraps Base UI's Input primitive with consistent styling. Supports focus-visible ring, data-invalid / aria-invalid error states, file input styling, and selection color customization.

Usage

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

Installation

Install via CLI

TypeScript
npx edbn-ui@latest add input

Examples

With Label

File Input

Disabled

API Reference

typeHTMLInputTypeAttribute
="text"

The input type (text, email, password, file, etc.)

placeholderstring

Placeholder text

disabledboolean
=false

Disable the input

classNamestring

Additional CSS classes