Rainbow Button
A stunning animated button with rainbow gradient border, text, and glow effects. The gradient animates on hover for an eye-catching call-to-action.
Preview
Try Nyxhora UI ✨
Installation
Use the CLI to add this component to your project.
Usage
tsx
14 linesCopy
Sizes
Small
Small Button
Medium (Default)
Medium Button
Large
Large Button
Examples
Call to Action
Join Nyxhora Today! 🚀
Subscribe Button
Subscribe for Updates 📧
Fast Animation
Quick Rainbow! ⚡
Thick Border
Bold Border 💪
Disabled State
Disabled Button
Fun with Nyxhora
Ship it! 🚢
Build Something Cool 🛠️
Copy that Component 📋
Star on GitHub ⭐
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Button text/content (required) |
onClick | () => void | undefined | Click handler function |
disabled | boolean | false | Whether the button is disabled |
size | 'sm' | 'md' | 'lg' | md | Button size variant |
borderWidth | number | 1.5 | Border width in pixels |
animationDuration | number | 3 | Animation duration in seconds |
className | string | undefined | Additional CSS classes |