Network Graph
Groups of items as a network on a slowly turning sphere: each group a hub with its items around it, and an item in several groups linked to each. Drag to turn it, point at a node to light up its links; particles drift behind it.
Loading preview…
Install
Steps for Next.js.
Install the package
One package carries every component and its effects, all original code.
bun add @poulo2/ai-componentsLoad the styles with Tailwind v4
Add both lines to your global stylesheet so Tailwind generates the classes the components use. If your app already defines the shadcn/ui tokens, skip the theme import to keep your own palette.
@import "@poulo2/ai-components/theme.css"; @source "../node_modules/@poulo2/ai-components/dist";Or load the prebuilt stylesheet
For apps without Tailwind. Import it once at the root; it includes Tailwind's base reset.
import "@poulo2/ai-components/styles.css";
Props
| Name | Type | Default | Description |
|---|---|---|---|
| groups | { name: string; items: string[] }[] | — | The hubs and their items. An item named in several groups is one node, linked to each. |
| particles | boolean | true | Drifting particles behind the network. |
| className | string | — | Classes for the root element. |