Input Group Field
Input Group Field: Grouped input with prefix and suffix slots — URLs, currency, units. Wrapper border highlights on focus; inputs use border-only focus with ring-0. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Input Group Field
npx motion-ui-skill add input-group-fieldComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Input Group Field
Grouped input with prefix and suffix slots — URLs, currency, units. Wrapper border highlights on focus; inputs use border-only focus with ring-0.
Install
npx motion-ui-skill add input-group-field
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { InputGroupField } from "@/components/inputs/input-group-field";
export function InputGroupFieldDemo() {
return (
<div className="flex items-center justify-center p-6">
<InputGroupField />
</div>
);
}
API Reference
InputGroupField
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |