Animated Input
A highly interactive input component featuring smooth floating labels and custom hex color glow effects on focus.
Installation
npx raya-ui@latest add animated-inputFile Structure
your-project
components
ui
AnimatedInput.vue
API Reference
AnimatedInput
v-modelstring | number""The bound value of the input field.
glow-colorstring"#a855f7"The color of the focus glow effect. Accepts any valid CSS color string (Hex, RGB, HSL).
labelstringThe text displayed as the floating label.
placeholderstringThe placeholder text shown when the input is focused and empty.
Settings
source-code.vue
<script setup lang="ts">
import { ref } from 'vue'
import { AnimatedInput } from '@/components/ui/animated-input'
const value = ref('')
</script>
<template>
<AnimatedInput
v-model="value"
label="Email Address"
placeholder="john@example.com"
/>
</template>