Bouncy Input Nova
pixelflow-ui/bouncy-input-novaFreeComponent
pixelflow-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by pixelflow-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://pixelflowui.lok1.dev/r/bouncy-input-nova.jsonSource
1"use client";23import React, { useState, useEffect } from "react";4import { motion, useAnimation } from "motion/react";56const BouncyInput = () => {7 const [value, setValue] = useState("");8 const controls = useAnimation();910 // re-trigger bounce whenever value changes11 useEffect(() => {12 controls.start({13 scaleX: [1, 1.01, 1],14 scaleY: [1, 1.1, 1],15 transition: { duration: 0.2, ease: "easeInOut" },16 });17 }, [value, controls]);1819 return (20 <div className="relative justify-center items-center w-full">21 <motion.div22 animate={controls}23 className="h-full w-full max-w-md flex items-center justify-center text-black overflow-hidden border-[0.6px] box-border border-gray-300 rounded-md px-3 py-2 absolute bg-transparent z-10"24 ></motion.div>25 <input26 placeholder="Type something..."27 type="text"28 className="w-full text-white focus:outline-none px-3 py-2 z-20 relative bg-transparent"29 value={value}30 onChange={(e) => setValue(e.target.value)}31 />32 </div>33 );34};3536export default BouncyInput
What it pulls in
npm packages
Files it writes
More from pixelflow-ui
All 35 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordion Lyraaccordion-lyra | pixelflow-ui | Components | Free | 3 deps | |
| Accordion Novaaccordion-nova | pixelflow-ui | Components | Free | 3 deps | |
| Accordion Retroaccordion-retro | pixelflow-ui | Components | Free | 3 deps | |
| Background 1background-1 | pixelflow-ui | Components | Free | no deps | |
| Background 1Retrobackground-1-retro | pixelflow-ui | Components | Free | no deps | |
| Bouncy Input Lyrabouncy-input-lyra | pixelflow-ui | Components | Free | 1 dep | |
| Bouncy Input Retrobouncy-input-retro | pixelflow-ui | Components | Free | 1 dep | |
| Button 1button-1 | pixelflow-ui | Components | Free | no deps |
