# Reeded Glass

> WebGL fluted glass panel over drifting colored lights and plant stems. Each reed is a lens that squeezes, flips and splits what stands behind it into color, with groove shadows, a highlight down every reed and adjustable frosting. Set the reed width and angle; one light follows the pointer. Pauses off-screen and holds a still frame for reduced motion.

- Slug: `reeded-glass`
- Category: [Backgrounds](https://www.assembli.design/category/backgrounds.md)
- Type: block
- Tags: webgl, shader, glass, refraction, gradient, pointer
- npm dependencies: motion
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/reeded-glass
- Page: https://www.assembli.design/components/reeded-glass

![Reeded Glass preview](https://www.assembli.design/thumbnails/reeded-glass-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `[string, string, string, string]` | `LIGHT` | Four light colors behind the glass (any CSS colors). The first one follows the pointer. |
| `darkColors` | `[string, string, string, string]` | `DARK` | The same lights in dark mode. |
| `reed` | `number` | `30` | Width of one reed, in CSS px. |
| `angle` | `number` | `0` | Reed direction in degrees: 0 runs them top to bottom. |
| `frost` | `number` | `0.35` | Frosting, 0 (clear) to 1 (sandblasted). |
| `mode` | `"auto" \| "light" \| "dark"` | `"auto"` | Follow the page theme, or force one. |
| `speed` | `number` | `1` | How fast the lights drift. 0 holds them still. |
| `interactive` | `boolean` | `true` | The first light follows the pointer. |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/reeded-glass/reeded-glass.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/reeded-glass
```

Registry item JSON: https://www.assembli.design/r/reeded-glass.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
