Glitch Button
Glitch Button: Cyberpunk button with chromatic aberration RGB splitting, scanline jitter, and glitch slices on hover. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Glitch Button
npx motion-ui-skill add glitch-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Glitch Button
Cyberpunk button with chromatic aberration RGB splitting, scanline jitter, and glitch slices on hover.
Install
npx motion-ui-skill add glitch-button
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { GlitchButton } from "@/components/buttons/glitch-button";
export function GlitchButtonDemo() {
return (
<div className="flex items-center justify-center p-6">
<GlitchButton>Click Me</GlitchButton>
</div>
);
}
API Reference
GlitchButton
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |
children |
React.ReactNode |
— | No | Button label content |