Skip to content
Stylhero 0.8.0
Components

Core

Layout and type

Inputs

Overlays

Navigation

Data display

Charts

Transitions and utilities

Page pieces (landing pages, portfolios, docs)

Icons

Components / Page pieces (landing pages, portfolios, docs)

Spotlight

Soft glow that follows the cursor, for landing and portfolio pages. Wide screens only; off for reduced motion.

import { Spotlight } from "@stylhero/ui";

Example

Code
import { Spotlight, Text } from "@stylhero/ui";

function SpotlightExample() {
  return <Text variant="small" tone="muted">Spotlight is page-wide: it's on this page now. Move the pointer on a wide screen.<Spotlight /></Text>;
}

Props

PropTypeDefaultDescription
className string -

Generated from src/components/Spotlight.tsx. Something wrong or missing? Open an issue.