← ProcessesMED·Kit · Mehmet Ergul Design Kit

Components

Input

Hairline-bordered text field or textarea; border brightens on hover and focus.

Preview

components/forms/Input.jsx

Usage

src/components/ui/Input.tsx
tsx
import { Input } from "@/components/ui/Input";

<Input
  type="email"
  placeholder="you@example.com"
  value={email}
  onChange={(e) => setEmail(e.target.value)}
/>

<Input multiline rows={5} placeholder="Message…" />

API

props
PropTypeDefaultDescription
multilinebooleanfalseRender a textarea instead of a single-line input.
rowsnumber4Textarea rows (multiline only).
typestring"text"Native input type.
value / onChangestring / (e) => voidControlled value handlers.
placeholderstringGhost text in --color-fg-subtle.
disabledbooleanfalseHalf opacity, no lit state.
ariaLabelstringAccessible name when no visible label exists.

Tokens consumed

semantic only
--color-bg-elevated--color-border--color-border-hover--color-fg--transition-border--radius-sm