Aura UI
Back to components
inputsInputFormTailwind

Text Input

A reusable, accessible, and customizable text input component.

Preview

Loading preview...

Installation

npx aura-ui@latest add text-input

Source Code

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

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

Props

PropTypeDefaultDescription
typestring"text"The HTML input type.
placeholderstring-Placeholder text for the input.
valuestring | number-Value of the input.
onChangefunction-Callback when the value changes.
classNamestring-Additional CSS classes.