Single-line text input.

Base UI APISource

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.

PropTypeDefaultDescription
aria-invalidboolean—Shows the negative ring for validation errors.
disabledbooleanfalseBlocks input and applies the disabled style.

All other props are forwarded to the underlying Base UI component.