GitHub 560+

Input

Displays a form input field or a component that looks like an input field.

Installation

npx shadcn@latest add @fulldev/input

Usage

import { Input } from "@/components/ui/input"
<Input />

Examples

Basic

Disabled

Invalid

File

Notes

  • Use Input for single-line text-like controls such as email, password, and phone fields.
  • Pair it with Label for simple forms, or use Field when you also need descriptions, validation, or grouped layouts.
  • Set aria-invalid when the control should display an invalid state.

API Reference

See the GitHub source code for more information on props.