---
title: "Glitch Button | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/glitch-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/glitch-button.tsx"
install_command: "npx motion-ui-skill add glitch-button"
dependencies: ["clsx","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Glitch Button

> Cyberpunk button with chromatic aberration RGB splitting, scanline jitter, and glitch slices on hover.

## Install

```bash
npx motion-ui-skill add glitch-button
```

## Dependencies

- `clsx`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/buttons/glitch-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/glitch-button.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
