GodUI

Magic Button

A pushable 3D button with rainbow edge animation and solid front face.

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/magic-button.json"

Usage

tsx
 
import { MagicButton } from "@/components/godui/magic-button";
tsx
 
<MagicButton variant="default">Push me</MagicButton>

Examples

Sizes

Without rainbow

Set rainbow={false} for a static 3D edge that uses the variant color instead of the animated gradient.

Disabled

Props

PropTypeDefaultDescription
variant"default" | "secondary""default"Front face color scheme
size"sm" | "default" | "lg""default"Button padding and text size
rainbowbooleantrueAnimate the 3D edge and shadow with a rainbow gradient

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub