Input

Forms

A text input field for capturing user input. Supports labels, placeholders, error states, and various HTML input types.

Import

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

Usage

Basic Input

Standard text input with label

With Validation

Input showing error state

Input Types

Different HTML input types

Disabled

Input in disabled state

API Reference

PropTypeDefaultDescription
labelstringLabel text displayed above the input
placeholderstringPlaceholder text shown when empty
errorstringError message to display below the input
disabledbooleanfalseWhether the input is disabled
typestring"text"HTML input type (text, email, password, etc.)

Related Components