saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Input

Input

Displays a form input field.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/input

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

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

Examples

File

Loading...
File input variant.

Disabled

Loading...
Disabled input state.

With Label

Loading...
Input paired with label.

With Button

Loading...
Input with subscribe button.

Sizes

Loading...
Size variants: sm, default, lg.

With Start Icon

Loading...
Input with leading icon.

Search with Shortcut

Loading...
Search with Cmd+K shortcut.

With Addon

Loading...
Input with https:// prefix.

Password Toggle

Loading...
Password with show/hide.

Search with Loader

Loading...
Search with loading state.

With Error

Loading...
Input with validation error.

OTP Outlined

Loading...
OTP input variant.

OTP Grouped

Loading...
Grouped OTP layout.

Time Input

Loading...
Time selection input.

Card Number

Loading...
Payment card number.

Expiry Date

Loading...
Card expiration input.

CVC Code

Loading...
Card security code.

Card Details

Loading...
Complete card form.

API Reference

PropTypeDefaultDescription
typestring"text"The input type (text, email, password, etc.).
placeholderstring—Placeholder text.
PreviousInput OTPNextItem

On This Page

  • Installation
  • Usage
  • Examples
  • File
  • Disabled
  • With Label
  • With Button
  • Sizes
  • With Start Icon
  • Search with Shortcut
  • With Addon
  • Password Toggle
  • Search with Loader
  • With Error
  • OTP Outlined
  • OTP Grouped
  • Time Input
  • Card Number
  • Expiry Date
  • CVC Code
  • Card Details
  • API Reference
⌘K
https://

Please enter a valid email address.