Introducing Nuvyx UI v1.0.0

Docs
Glitch Button

Glitch Button

Cyberpunk-inspired buttons with glitch effects that can be triggered on hover or click.

Installation

Usage

import { GlitchButton } from "@/components/ui/glitch-button";
// Basic usage
<GlitchButton>Click Me</GlitchButton>
 
// With custom colors
<GlitchButton
  glitchColors={{
    primary: '#ef00ef',
    secondary: '#00ffff'
  }}
  borderColor="white"
>
  Cyberpunk Button
</GlitchButton>
 
// Always showing glitch effect
<GlitchButton
  glitchAlways={true}
  glitchOnHover={false}
  className="bg-black text-white"
>
  Always Glitching
</GlitchButton>

Props

PropTypeDefaultDescription
glitchOnHoverbooleantrueWhether to trigger glitch effects when hovering over the button.
borderColorstring"white"Custom border color for the glitch effect.
glitchAlwaysbooleanfalseWhether to continuously display the glitch effect regardless of hover/click state.
glitchColorsobject{ primary: '#ef00eff', secondary: '#00ffff' }Custom colors for the glitch effect with primary and secondary properties.
classNamestring""Additional CSS classes to apply. Background and text colors are detected from these classes.
childrenReact.ReactNodeundefinedContent of the button.