saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Spotlight

Spotlight

Creates a spotlight effect that follows cursor.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/spotlight

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { Spotlight } from "@/components/ui/spotlight"
<div className="relative">
  <Spotlight />
  Content here
</div>

Examples

Border Spotlight

Loading...
Spotlight glow on card borders.

Card

Loading...
Spotlight on card background.

Large

Loading...
Larger spotlight with custom colors.

Multiple Cards

Loading...
Multiple cards with spotlights.

API Reference

PropTypeDefaultDescription
sizenumber200Size of the spotlight.
PreviousSpinnerNextSwitch

On This Page

  • Installation
  • Usage
  • Examples
  • Border Spotlight
  • Card
  • Large
  • Multiple Cards
  • API Reference

Hover over this card

A spotlight follows your cursor

Border Glow

Hover to reveal

Purple Glow

Hover to reveal

Green Glow

Hover to reveal

Interactive Card

Move your cursor over this card to see the spotlight follow along on the background.

ReactMotion

Large Spotlight

A bigger spotlight with custom purple color and smooth spring physics

Performance

Lightning fast rendering

Security

Enterprise-grade protection

Global

Deploy worldwide instantly