Sonu kumar

React Shimmer Button Component: A Customizable Button with Animated Effects

Buttons 27

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.7K
  • Modern Hero

    Modern Hero

    1.5K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.3K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.2K
  • About Us section

    About Us section

    1.2K
  • Animated Hero Section

    Animated Hero Section

    717
  • Cuisine Selector Chips

    Cuisine Selector Chips

    611
  • Bounce card features

    Bounce card features

    606

More in Buttons

View all
  • Texture Button

    Texture Button

    122
  • Button

    Button

    172
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Button

    Button

    88
  • Native Button

    Native Button

    7
  • Button

    Button

    74
  • Button Group

    Button Group

    5
  • Button

    Button

    21