Skip to content
synccn

Spotlight Card

Border and surface light up under the pointer.

Composable

Small parts that fit together into whole screens.

Themeable

One set of CSS variables controls every colour.

Installation

$ pnpm dlx shadcn@latest add @synccn/spotlight-card

First time in this project? Connect synccn with one command.

Usage

import { SpotlightCard } from "@/components/ui/spotlight-card";<SpotlightCard>…</SpotlightCard>

API reference

Generated from the component's TypeScript types, so it always matches the code.

SpotlightCard

A card whose border and surface light up under the pointer.

  • radius
    number

    Default 320

    Spotlight radius in pixels.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.