HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
SpotlightView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA soft light that follows the pointer across its content and along its edge.Also called Glow card, Hover glow, Cursor glow, and Mouse light.ExperimentalSince 0.246.0ContentImportimport'@fusion.dev/helix/spotlight'Preview
GuidelinesWhen to use
A row of cards, such as pricing plans, lit under the mouse as it moves.SpotlightThis page
Put each card of a row in its own Spotlight.The row then reads as one surface the light moves over.
API referenceRoothelix-spotlightA soft light that follows the pointer across its content and along its edge.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)The content the light moves over, such as a Card.
PartDescriptionedgeThe light on the edge, a ring as wide as --spotlight-edge-width. Hidden from screen readers.glowThe light over the content. Hidden from screen readers.
CSS PropertyDescription--spotlight-colorThe color of the light over the content. Defaults to the foreground at 5% in light mode and 8% in dark mode.--spotlight-edge-colorThe color of the light on the edge. Defaults to the foreground at 30% in light mode and 40% in dark mode. transparent lights no edge.--spotlight-edge-widthHow wide the lit edge is. Defaults to --helix-border-thin, a Card's border.--spotlight-radiusThe corners the light is clipped to. Defaults to --helix-radii-md, the corners of a Card.--spotlight-sizeHow far the light reaches from the pointer. Defaults to 12rem.
Custom stateDescriptionlitA pointer is over the content, and the light follows it. It fades once the pointer leaves.settledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionPreviewA soft light follows the mouse across each plan and lights the edge nearest it.