Browse components
Torch Card
A soft light follows the cursor across the card surface.
Installation
npx shadcn@latest add @glint-ui/torch-cardFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/torch-card.json
Usage
import { TorchCard } from "@/components/ui/torch-card";
<TorchCard>
<h3>Spotlight</h3>
</TorchCard>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Card content. |
| spotlightColor | string | "rgba(198, 255, 61, 0.18)" | Light color; use alpha. |
| size | number | 400 | Spotlight diameter in px. |
| className | string | — | Extra classes for the root element. |