Input

Inputs components for different use case.

Input - Basic

Live Preview
Open in

Installation

npm install

Usage

import { Input } from "@/components/ui/input";

export function MyComponent() {
  return (
    <div className="grid w-full max-w-sm items-center gap-1.5">
      <label htmlFor="email">Email</label>
      <Input type="email" id="email" placeholder="Email" />
    </div>
  );
}

Props

PropTypeDefaultDescription
typestring"text"Input type (text, email, password, etc.)
placeholderstring-Placeholder text
classNamestring-Additional CSS classes
disabledbooleanfalseWhether the input is disabled
valuestring-Input value
onChangefunction-Change handler

Dependencies

This component has no external dependencies.


Input - Tags selector

Live Preview
Open in
xui

Input - File Upload

Live Preview
Open in

Drag and drop or click to upload


Input - Number

Live Preview
Open in
0100

Input - Password

Live Preview
Open in
8+ characters
Number
Lowercase
Uppercase
Special (!@#$)

Input - OTP Input

Live Preview
Open in
Verification Code

Input - Color Picker

Live Preview
Open in
Opacity100%
Swatches

Input - Selector

Live Preview
Open in
Team member 1
1

Input - Mood

Live Preview
Open in
Face Mood