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
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
- |
Generated from src/components/Spotlight.tsx. Something wrong or missing? Open an issue.