Skip to content
VenusUI
Get started

Spotlight Features

Four feature cards with a soft light that follows the pointer.

Preview

Installation

npx shadcn@latest add @venusui/features-04

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/hooks/use-pointer-position.tsfrom use-pointer-position
  • @/lib/compose-refs.tsfrom compose-refs
  • @/components/ui/spotlight-card.tsxfrom spotlight-card
  • @/components/features-04.tsx

Usage

The code behind the preview above.

features-04-demo.tsx

import { Features04 } from "@/components/features-04"

export default function Features04Demo() {
  return <Features04 />
}

API reference

No props. Features are in the features array at the top of the file.

Requirements

  • VenusUI spotlight-card (the CLI installs it and its hook), lucide-react, React 19 and Tailwind CSS v4.

Customization

  • Edit the features array; use any Lucide icon.
  • Give the spotlight a brand tint with spotlightColor on each card.

Accessibility

  • Each card has an h3 under the section’s h2.
  • The light is decorative and hidden with reduced motion.

Troubleshooting

No light appears.
It only shows while a mouse is over a card.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.