Text Field Input
Text Field Input: Standard labeled text field with hint and error states. Supports all native input types, required marker, disabled, and full a11y wiring. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Text Field Input
npx motion-ui-skill add text-field-inputComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Text Field Input
Standard labeled text field with hint and error states. Supports all native input types, required marker, disabled, and full a11y wiring.
Install
npx motion-ui-skill add text-field-input
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { TextFieldInput } from "@/components/inputs/text-field-input";
export function TextFieldInputDemo() {
return (
<div className="flex items-center justify-center p-6">
<TextFieldInput />
</div>
);
}
API Reference
TextFieldInput
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |