Nodes

Spreads light across a hairline lattice, one crossing igniting the next.

Default

Supported configurations for this component.

Default

1 example

Add to your project

One command adds this component to your project.

1

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.

PropTypeDefaultDescription
seednumber-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)
pausedboolean-freeze on the current frame (off-focus / backgrounded surfaces)
colorstring-resting lattice hairlines; any CSS colour syntax; defaults to border.subtle
glyphColorstring-resting survey glyphs at each crossing; defaults to border.base
lightColorstring-travelling light — rays, halo, spark, bloom, all derived from this one value; defaults to text.primary
classNamestring-Additional CSS classes applied to the root element.

More Andromeda Pro components