Skip to content

    Browse components

    Ember Path

    Grid pixels ignite along the cursor path, burn white-hot and shrink away as they fade.

    Ember Path

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/ember-path

    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/ember-path.json

    Usage

    import { EmberPath } from "@/components/ui/ember-path";
    
    <div className="relative h-96">
      <EmberPath pixelSize={24} decay={700} />
    </div>

    Props

    PropTypeDefaultDescription
    pixelSizenumber24Cell size in px.
    decaynumber700Ms for a lit pixel to fade out.
    brushnumber1Brush radius in cells.
    colorstring"#c6ff3d"Trail color.
    showGridbooleantrueFaint grid lines under the trail.
    idlebooleantrueDraw a wandering trail while the cursor is away.
    classNamestring—Extra classes for the root element.