Skip to content

    Browse components

    Ember Cells

    A grid of cells that light up under the cursor and cool into a fading color trail.

    Ember Cells

    Open
    Customize

    Installation

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

    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-cells.json

    Usage

    import { EmberCells } from "@/components/ui/ember-cells";
    
    <div className="relative h-96">
      <EmberCells cellSize={36} />
    </div>

    Props

    PropTypeDefaultDescription
    cellSizenumber36Cell size in px.
    gapnumber4Gap between cells in px.
    radiusnumber6Corner radius in px.
    baseColorstring"#27272a"Idle cell outline color.
    colorstring"#c6ff3d"Color of freshly lit cells.
    trailColorstring"#22d3ee"Color lit cells cool down to as they fade.
    fadenumber1400Ms for a lit cell to fade out.
    brushnumber1.5Brush radius in cells.
    classNamestring—Extra classes for the root element.