Orb
Sweeps one circle through a full turn into a sphere of hairline loops.
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 |
|---|---|---|---|
| density | 'sparse'|'default'|'dense' | - | loop + pulse count; defaults to 'default' |
| seed | number | - | composition seed — same seed, same figure, every render |
| paused | boolean | - | hold the figure still (no rotation, no pulses) |
| color | string | - | loop hairline ink; defaults to border.strong. Any CSS colour syntax — hex, rgb(), a var() expression. The pinch and the depth shading are alphas of THIS value, so one prop recolours the whole structure. |
| lightColor | string | - | travelling pulse ink (trail, halo, head); defaults to text.primary. Same syntax freedom. |
| className | string | - | Additional CSS classes applied to the root element. |