Components/Input

Input

Single-line text field with optional left/right adornments, sizes, and error state.


Installation

npx ajaxui add input

Usage

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

export default function App() {
  return <Input placeholder="Email" />
}

Sizes

With adornments

@
.com

Props

PropTypeDefault
inputSize"sm" | "md" | "lg""md"
leftElementReactNode
rightElementReactNode
errorbooleanfalse
disabledbooleanfalse