Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Hover Card
- Input
- Input OTP
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
import { Input } from "@/components/input/input";
export function InputDemo() {
return <Input placeholder="Email" style={{ maxWidth: 280 }} type="email" />;
}Installation
$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/input.json
Usage
import { Input } from "@/components/ui/input/input";<Input type="email" placeholder="Email" />Examples
Label
Pair the input with a label element.
import { Input } from "@/components/input/input";
export function InputLabel() {
return (
<div
style={{Disabled
import { Input } from "@/components/input/input";
export function InputDisabled() {
return (
<Input
disabledFile
import { Input } from "@/components/input/input";
export function InputFile() {
return (
<div
style={{RTL
To enable right-to-left support, see the RTL guide.
"use client";
import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";
import { Input } from "@/components/input/input";
API Reference
Input
The Input component is a styled wrapper around the native <input> element and accepts all of its props.
| Prop | Type | Default |
|---|---|---|
type | string | - |
className | string | - |