Sonu kumar

React Shimmer Button Component: A Customizable Button with Animated Effects

Buttons 23

About

This React component renders a customizable button with various visual enhancements, including a 3D effect, hover animations, and a unique shimmer effect triggered by mouse movement. It offers options for size, variant (default or secondary), and custom shimmer color. The component utilizes CSS variables and keyframes for animation.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds React Shimmer Button Component: A Customizable Button with Animated Effects to your project and fits it to your theme.

Code

How React Shimmer Button Component: A Customizable Button with Animated Effects is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from 'react';
import {ShimmerButton, type ShimmerButtonProps} from "@/components/ui/shimmer-button";

export default function ShimmerButtonDemo() {
  return (
    <div className="min-h-screen bg-background flex items-center justify-center p-8 w-full">
      {/* Grain overlay for aesthetic */}
      
      <div className="relative z-10 flex flex-col items-center gap-8">
        {/* Main demo */}
        <div className="text-center space-y-4">
         
          
          <ShimmerButton onClick={() => alert('Hello from Shimmer Button!')}>
            Contact Us
          </ShimmerButton>
        </div>
        
      </div>
    </div>
  );
}

More by Sonu kumar

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.4K
  • Modern Hero

    Modern Hero

    1.4K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.2K
  • About Us section

    About Us section

    1.2K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.1K
  • Animated Hero Section

    Animated Hero Section

    689
  • Cuisine Selector Chips

    Cuisine Selector Chips

    585
  • Bounce card features

    Bounce card features

    573

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Button

    Button

    32
  • Split Button

    Split Button

    32