saturation/ui
DocsComponentsBlocksPages

Sections

IntroductionComponentsInstallationTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNovel EditorPaginationProgressProgressive BlurRadio GroupSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Input

Input

Displays a form input field.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation/input

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.

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.