Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Forms

Input

Input and InputGroup components for text input with icons, loaders, and buttons.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/input

Usage

import { Input } from "@/components/ui/preskok-ui/input"

export function InputDemo() {
  return <Input aria-label="Name" placeholder="Your name" />
}

Examples

Input Group Examples

Controlled Input

Input Group

With Label and Description

With TextField

Components

Input

The base input primitive with consistent styling.

InputGroup

A wrapper that allows you to add icons, loaders, text, or buttons alongside the input.

<InputGroup>
  <InputGroupAddon>
    <MailIcon />
  </InputGroupAddon>
  <InputGroupInput type="email" />
</InputGroup>

Props

All standard HTML input props are supported, plus:

PropTypeDefaultDescription
classNamestring-Additional CSS classes
refReact.Ref<HTMLInputElement>-Input element ref

Form

Group inputs and handle validation using the native form element.

Text Field

A comprehensive text input field with prefix, suffix, and password reveal.

On this page

Installation
Usage
Examples
Input Group Examples
Controlled Input
Input Group
With Label and Description
With TextField
Components
Input
InputGroup
Props
https://
.com
https://
.com

Button intents

Please enter your full name.
Please enter your full name.