Input
A versatile and visually dynamic input field with radial hover effects, styled for modern web applications.
API
Prop Name | Type | Default | Description |
---|---|---|---|
defaultValue | string | number | "" | Default value of the input field. |
class | string | "" | Additional CSS classes for custom styling. |
containerClass | string | "" | Additional CSS classes for custom styling of the container. |
Component Code
You can copy and paste the following code to create this component:
IInput.vue
Features
- Radial Hover Effect: Displays a dynamic radial gradient background that follows mouse movements when hovering over the input container.
- Two-Way Binding: Supports
v-model
for seamless integration with Vue's two-way data binding. - Dark Mode Compatibility: Automatically adapts to dark mode styles using Tailwind's
dark:
utilities. - Customizable Styles: Easily extend or override styles using the
class
prop. - Accessible Focus Ring: Includes focus-visible styles for enhanced accessibility and usability.
- Responsive Design: Works well across different screen sizes and devices.
Styles
This component inherits base styles from ShadCN Vue’s Input component and applies additional functionality, including hover effects and shadow styling.
Credits
- Built on ShadCN Vue's Input component foundation, with extended functionality for modern UI/UX needs.
- Ported from Aceternity UI's Signup Form Input Component