Animated Components

Spotlight Button

An animated CTA button with shimmer, glow, and motion-driven emphasis for marketing sections and feature launches.

Loading...

Installation

Install the registry item directly, then add any package dependencies if you are setting the component up manually.

1

Install the component

Run the registry command below to add spotlight-button to your project.

npm install motion class-variance-authority lucide-react
2

Install manual dependencies

If you are wiring the component manually, install the package dependencies shown below.

npm install motion class-variance-authority lucide-react
3

Import the component

Import Spotlight Button from your local UI registry output.

Import

import { SpotlightButton } from "@/components/animated/spotlight-button";

Import

Import

import { SpotlightButton } from "@/components/animated/spotlight-button";

Usage

Use SpotlightButton when you want a single call-to-action to feel more cinematic than a standard button.

Hero CTA

Pair the component with a short badge and a concise action label.

Loading...

Neutral Surface

Switch to the neutral variant when the button sits inside a denser card or dashboard surface.

Loading...

Custom Copy

Use the badge prop to tune urgency without rewriting the rest of the component structure.

Loading...

API Reference

SpotlightButton extends the native button element and adds lightweight animation props through Motion.

proptypedefaultdescription
variant"default" | "neutral""default"Chooses between a bright promotional surface and a quieter card-style treatment.
size"default" | "lg""default"Controls padding, min-height, and icon spacing.
badgestring"New"Small uppercased pill shown ahead of the label.
disabledbooleanfalseDisables interaction while preserving the layout.