Skip to content

    Browse components

    Mote Field

    A drifting constellation that links nearby points and flees the cursor.

    Mote Field

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/mote-field

    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/mote-field.json

    Usage

    import { MoteField } from "@/components/ui/mote-field";
    
    <div className="relative h-96">
      <MoteField count={100} />
    </div>

    Props

    PropTypeDefaultDescription
    countnumber80Number of particles.
    colorstring"#ffffff"Particle and link color.
    speednumber0.4Px per frame.
    linkDistancenumber110Max px between linked particles.
    interactivebooleantrueParticles flee the cursor.
    classNamestring—Extra classes for the root element.