Button Gradient
Advanced gradient buttons with noise effects, cursor interactions, and animated borders.
Gradient Presets
1<ButtonGradient gradient="purple-blue">Purple Blue</ButtonGradient>2<ButtonGradient gradient="orange-red">Orange Red</ButtonGradient>3<ButtonGradient gradient="green-teal">Green Teal</ButtonGradient>Noise Effects
1<ButtonGradient noiseEffect="grain">Grain Noise</ButtonGradient>2<ButtonGradient noiseEffect="perlin">Perlin Noise</ButtonGradient>3<ButtonGradient noiseEffect="animated">Animated Noise</ButtonGradient>Cursor Effects
Hover over the buttons to see the effects. Click for ripple.
1<ButtonGradient cursorEffect="ripple">Click Me (Ripple)</ButtonGradient>2<ButtonGradient cursorEffect="glow">Hover Me (Glow)</ButtonGradient>3<ButtonGradient cursorEffect="spotlight">Hover Me (Spotlight)</ButtonGradient>Animated Border Effects
1<ButtonGradient borderEffect="rotating">Rotating Border</ButtonGradient>2<ButtonGradient borderEffect="pulsing">Pulsing Border</ButtonGradient>3<ButtonGradient borderEffect="spectrum">Spectrum Border</ButtonGradient>Sizes
1<ButtonGradient size="sm">Small</ButtonGradient>2<ButtonGradient size="md">Medium</ButtonGradient>3<ButtonGradient size="lg">Large</ButtonGradient>Combined Effects
1<ButtonGradient2 gradient="purple-blue"3 noiseEffect="grain"Custom Gradient
1<ButtonGradient2 gradient="custom"3 gradientFrom="#ff6b6b"Installation
npx zeroui@latest add button-gradientProps
| name | type | default | description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | "md" | - |
| gradient | "purple-blue" | "orange-red" | "green-teal" | "pink-purple" | "custom" | "purple-blue" | - |
| gradientFrom | string | - | - |
| gradientTo | string | - | - |
| gradientVia | string | - | - |
| noiseEffect | "none" | "grain" | "perlin" | "animated" | "none" | - |
| noiseOpacity | number | 0.15 | - |
| cursorEffect | "none" | "ripple" | "glow" | "spotlight" | "none" | - |
| borderEffect | "none" | "rotating" | "pulsing" | "spectrum" | "glow" | "none" | - |
| children | ReactNode | - | - |
| className | string | "" | - |
| disabled | boolean | false | - |