Skip to content

    Browse components

    Twinkle Card

    A card whose background ripples into a field of twinkling canvas pixels on hover or focus, with built-in color themes.

    Open
    Customize
    lime
    ocean
    ember
    candy
    mono

    Installation

    npx shadcn@latest add @glint-ui/twinkle-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/twinkle-card.json

    Usage

    import { TwinkleCard } from "@/components/ui/twinkle-card";
    
    <TwinkleCard variant="ocean">
      <h3>Hover me</h3>
    </TwinkleCard>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Card content.
    variant"lime" | "ocean" | "ember" | "candy" | "mono""lime"Built-in color theme.
    colorsstring[]—Custom hex palette. Overrides variant.
    gapnumber6Distance between pixels in px.
    pixelSizenumber2.5Largest pixel size in px.
    speednumber1Reveal and twinkle speed multiplier.
    classNamestring—Extra classes for the root element.