Interactive input

InteractiveInput is a highly customizable interactive input component with shimmer effects, glow, and visual styling options.

Loading...

Installation

npx shadcn@latest add @scrollxui/interactive-input 

Usage

import { InteractiveInput } from '@/components/ui/interactive-input';
<InteractiveInput
  className='bg-green-500 text-white'
  variant='default'
  inputSize='default'
  glow={true}
  rounded='custom'
  hideAnimations={false}
  uppercase={true}
  textEffect='normal'
  shimmerColor='#39FF14'
  shimmerSize='0.15em'
  shimmerDuration='3s'
  borderRadius='100px'
  background='rgba(0, 0, 0, 1)'
  placeholder='Generate with ScrollX UI'
/>

API Reference

interactive input

InteractiveInput is a customizable input component with animation, shimmer, and visual styling options.

Props

PropertyTypeDefaultDescription
variant"default" | "outline-solid" | "ghost" | "glow""default"
Visual style of the input.
inputSize"sm" | "default" | "lg" | "icon""default"
Adjusts the size of the input.
rounded"none" | "default" | "full" | "custom""default"
Border radius style.
borderRadiusstring"—"
Custom border radius (used when rounded is 'custom').
glowbooleanfalse
Enables glowing animation around the input.
textEffect"normal" | "spread""normal"
Applies animated text styling.
uppercasebooleanfalse
Transforms text to uppercase.
backgroundstring"—"
Sets background color or gradient.
shimmerColorstring"—"
Shimmer color value (e.g., '#39FF14').
shimmerSizestring"—"
Size or thickness of shimmer (e.g., '0.15em').
shimmerDurationstring"—"
Duration of shimmer animation (e.g., '3s').
asChildbooleanfalse
Renders input as a child using Slot.
hideAnimationsbooleanfalse
Disables all input animations.
classNamestring"undefined"
Additional classes to style the input.
...propsHTMLInputElement attributes
Inherits all standard input element props.

Built withby Ahdeetai.