Input
Single-line text input.
Installation
pnpm dlx shadcn@latest add https://yea-ui.vercel.app/r/input.json
Usage
import { Input } from "@/components/ui/input"<Input placeholder="Enter your name" />Examples
States
Invalid state comes from aria-invalid, disabled from the native attribute.
API reference
Input
Wraps the Base UI Input, which forwards every native input prop.
| Prop | Type | Default | Description |
|---|---|---|---|
aria-invalid | boolean | — | Shows the negative ring for validation errors. |
disabled | boolean | false | Blocks input and applies the disabled style. |
All other props are forwarded to the underlying Base UI component.
