Floating Label Field Input
Floating Label Field Input: Outlined floating label that rests on the border notch when focused or filled — matches Material-style fields with autofill detection. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Floating Label Field Input
npx motion-ui-skill add floating-label-field-inputComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Floating Label Field Input
Outlined floating label that rests on the border notch when focused or filled — matches Material-style fields with autofill detection.
Install
npx motion-ui-skill add floating-label-field-input
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { FloatingLabelFieldInput } from "@/components/inputs/floating-label-field-input";
export function FloatingLabelFieldInputDemo() {
return (
<div className="flex items-center justify-center p-6">
<FloatingLabelFieldInput />
</div>
);
}
API Reference
FloatingLabelFieldInput
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |