Skip to content

    Browse components

    After Cursor

    Translucent, drifting echoes of the cursor trail behind the pointer like afterimages.

    Open
    Customize

    arrow
    ghost
    dot

    Installation

    npx shadcn@latest add @glint-ui/after-cursor

    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/after-cursor.json

    Usage

    import { AfterCursor } from "@/components/ui/after-cursor";
    
    <AfterCursor className="h-96" shape="ghost">
      <p>Boo.</p>
    </AfterCursor>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content under the cursor.
    colorstring"#ffffff"Color of the live cursor.
    ghostColorstring"#a78bfa"Tint of the trailing ghosts.
    countnumber6Number of ghost copies.
    spacingnumber4Frames of delay between consecutive ghosts.
    sizenumber28Cursor size in px.
    shape"arrow" | "ghost" | "dot""arrow"Cursor shape.
    hideCursorbooleantrueHide the native cursor inside the container.
    classNamestring—Extra classes for the root element.