preskok/ui

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

Installation

pnpm dlx @preskok-org/ui@latest add input

Usage

import { Input } from "@/registry/preskok/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>
  <MailIcon data-slot="icon" />
  <Input type="email" />
</InputGroup>

Props

All standard HTML input props are supported, plus:

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