Input

A glass-morphism text input with focus glow, error state, and full HTML input compatibility.

Preview

Installation

npx shadcn@latest add @shadszn/input

Usage

import { Input } from "@/components/ui/input"

export default function Example() {
  return <Input type="email" placeholder="you@example.com" />
}

Error State

<Input error placeholder="Invalid email" />

Disabled

<Input disabled placeholder="Cannot edit" />

Props

PropTypeDefaultDescription
errorbooleanfalseApplies red border styling to indicate an error.
typestring"text"HTML input type (text, email, password, etc.).
placeholderstring---Placeholder text.
disabledbooleanfalseDisables the input.