Animated Button

AnimatedButton is a highly customizable animated button component with shimmer effects, glow, and visual styling options.

Installation

npx scrollx-ui@latest add Animated-button

Usage

import { AnimatedButton } from "@/components/ui/animated-button";
<AnimatedButton
        className="bg-green-500 text-white"
        variant="default"
        size="default"
        glow={true}
        textEffect="normal"
        uppercase={true}
        rounded="custom"
        asChild={false}
        hideAnimations={false}
        shimmerColor="#39FF14"
        shimmerSize="0.15em"
        shimmerDuration="3s"
        borderRadius="100px"
        background="rgba(0, 0, 0, 1)"
      >
        ScrollX UI
      </AnimatedButton>

API Reference

Animated Button

AnimatedButton is a customizable button component with animation, shimmer, and visual styling options.

Props

PropertyTypeDefaultDescription
variant"default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "success" | "warning" | "info" | "dark" | "light" | "gradient" | "glass""default"
Controls the visual style of the button.
size"sm" | "default" | "lg" | "icon""default"
Adjusts the button size.
glowbooleanfalse
Enables glowing animation around the button.
textEffect"normal" | "shimmer" | "gradient" | "glitch" | string"normal"
Applies a text animation or effect.
uppercasebooleanfalse
Renders button text in uppercase.
rounded"none" | "sm" | "md" | "lg" | "xl" | "full" | "custom""md"
Controls border radius style.
borderRadiusstring
Custom border radius. Applies only when rounded = 'custom'.
backgroundstring
Custom background color or gradient.
shimmerColorstring
Color used in shimmer effect (e.g., '#39FF14').
shimmerSizestring"0.15em"
Size/thickness of the shimmer effect.
shimmerDurationstring"3s"
Duration of shimmer animation.
asChildbooleanfalse
Render the button as a child component using Slot.
hideAnimationsbooleanfalse
Disables all visual animations when true.
classNamestringundefined
Additional custom class names for styling.
...propsHTMLButtonElement attributes
All standard HTML button attributes and events.

Built withby Ahdeetai.