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

PropTypeDefaultDescription
typeReact.HTMLInputTypeAttribute"text"Native input type.
aria-invalidbooleanfalseEnables the destructive validation state.
classNamestringOverrides or extends input styling.