saturation/ui
DocsComponentsBlocksPages

Sections

IntroductionComponentsInstallationTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNovel EditorPaginationProgressProgressive BlurRadio GroupSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Spotlight

Spotlight

Creates a spotlight effect that follows cursor.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation/spotlight

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.

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