ComponentServer-safe
Input
A refined field with an inset accent baseline instead of a generic focus halo.
Installation
Preview
Soft surface with an inset focus edge.
Use letters, numbers and hyphens only.
Usage
tsx
import { Input } from "@/components/ui/input"
export function InputDemo() {
return <Input placeholder="you@example.com" type="email" />
}API reference
| Prop | Type | Default | Description |
|---|---|---|---|
type | React.HTMLInputTypeAttribute | "text" | Native input type. |
aria-invalid | boolean | false | Enables the destructive validation state. |
className | string | — | Overrides or extends input styling. |