Search

Search documentation

Input

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

Installation

pnpm dlx shadcn@latest add @evolphin/input

Usage

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

Type Definitions

interface InputProps extends .<HTMLInputElement> {
  /** The type of the input */
  type?: string;
InputProps.type?: string | undefined

The type of the input

}

Examples

Default

File

Disabled

With Button

API Reference

Input

PropTypeDefaultDescription
typestring"text"The HTML input type.
disabledbooleanfalseWhether the input is disabled.
classNamestring-Additional CSS classes

On this page