saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Input

Input

Displays a form input field.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/input.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). 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.