Animated Input

A text input with a mouse-following gradient border effect.

Installation

npx shadcn-vue@latest add https://raya-ui.com/registry/animated-input.json

Or manually:

npm install @vueuse/core clsx tailwind-merge

More Examples

Custom Glow Color

Customize the color of the glowing border effect.

Props

PropTypeDefaultDescription
glowColorstring'#14b8a6'The color of the mouse-following gradient border.
containerClassstring-Class for the wrapper div (useful for spacing/sizing).
classstring-Class for the input element itself.