saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Spotlight

Spotlight

Creates a spotlight effect that follows cursor.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/spotlight.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). 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.
PreviousSpinnerNextStep Timeline

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