Skip to content

    Browse components

    Torch Card

    A soft light follows the cursor across the card surface.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/torch-card

    First 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

    PropTypeDefaultDescription
    childrenReactNode—Card content.
    spotlightColorstring"rgba(198, 255, 61, 0.18)"Light color; use alpha.
    sizenumber400Spotlight diameter in px.
    classNamestring—Extra classes for the root element.