ComponentServer-safe

Input

A refined field with inset and luminous Prism surface options.

Installation

Preview

Preview style

Crisp border, layered depth and a soft focus halo.

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
variant"default" | "prism""default"Switches between the soft inset field and the crisp luminous surface.
typeReact.HTMLInputTypeAttribute"text"Native input type.
aria-invalidbooleanfalseEnables the destructive validation state.
classNamestringOverrides or extends input styling.