Nodes
Spreads light across a hairline lattice, one crossing igniting the next.
Default
Supported configurations for this component.
Default
1 exampleAdd to your project
One command adds this component to your project.
Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.
npx shadcn@latest add @aicanvas/••••••••••••Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").
Props
Every prop this component accepts. Any other prop is forwarded to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
| seed | number | - | fixes the lattice offset, the roots and the whole cascade; default 1337 |
| variant | 'sparse'|'default'|'dense' | - | lattice density (pitch + root count); default 'default' (the canonical look) |
| paused | boolean | - | freeze on the current frame (off-focus / backgrounded surfaces) |
| color | string | - | resting lattice hairlines; any CSS colour syntax; defaults to border.subtle |
| glyphColor | string | - | resting survey glyphs at each crossing; defaults to border.base |
| lightColor | string | - | travelling light — rays, halo, spark, bloom, all derived from this one value; defaults to text.primary |
| className | string | - | Additional CSS classes applied to the root element. |