Skip to content

    Browse components

    Glyph Spill

    A trail of glyphs or emoji that spills from the pointer inside its container, spinning and fading as it drifts.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/glyph-spill

    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/glyph-spill.json

    Usage

    import { GlyphSpill } from "@/components/ui/glyph-spill";
    
    <GlyphSpill items={["🍋", "✨"]} className="h-96">
      <h2>Leave a trail</h2>
    </GlyphSpill>

    Props

    PropTypeDefaultDescription
    itemsstring[]["✦","✧","✶","⋆"]Glyphs or emoji, used in order.
    colorsstring[]["#bef264","#67e8f9","#f0abfc"]Colors cycled per glyph.
    spacingnumber22Px of pointer travel between glyphs.
    lifetimenumber1000Ms each glyph lives.
    sizenumber30Glyph size in px.
    spinnumber180Degrees each glyph spins.
    maxItemsnumber60Most glyphs alive at once.
    childrenReactNode—Content the trail plays over.
    classNamestring—Extra classes for the root element.