A highly polished, interactive form component toolkit. Built using Framer Motion, it features floating labels, dynamic glassmorphism focus states, and a smooth inline success state transition upon submission. Includes inputs, textareas, checkboxes, and radio buttons.
Live Preview
Installation
npx kinetic-ui-cli@latest add floating-formArchitecture
We export four primary components: FloatingInput, FloatingTextarea, FloatingCheckbox, and FloatingRadio.
These components are un-controlled internally (for seamless visual animations) but can accept standard React onChange and value/checked props for controlled usage inside standard forms.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { FloatingForm } from "@/components/creative/floating-form";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { FloatingForm } from "@/components/creative/floating-form";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<FloatingForm
/>
</div>
);
}