Focus Card
Web (React)
A card with a subtle radial gradient spotlight that follows the user's cursor.
A card with a subtle radial gradient spotlight that follows the user's cursor, bringing attention to the elements you're hovering over. Great for feature grids and pricing cards.
✨
Focus Card
This card features a subtle spotlight effect that follows your cursor, bringing attention to the elements you're hovering over.
Installation
CLI
npx @modus-ui/cli add focus-cardManual
- Copy the code from the component tab.
- Create a file at
components/ui/focus-card.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | The content inside the card. |
className | string | - | Additional CSS classes for the card. |
spotlightColor | string | "rgba(255, 255, 255, 0.15)" | The color of the spotlight radial gradient. |
Comments