Your product in the middle, the tools it connects to on both sides. Pulses flow in from the left and out to the right; hover a tool to focus its beam, click it to pause.
Used for
- Integrations section
- Connected tools hero
- Data flow story
- Connector overview
Examples
Installation
npx knowns-ui@latest add tool-beamFor Claude Code, Cursor or Codex: installs it and wires the props to your own data.
Paste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install prompt
Install Tool beam from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/tool-beam
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add tool-beam
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/illustrations/illust-utils.ts
- components/ui/knowns/illustrations/use-in-view.ts
- lib/knowns/icons/actor-icon.tsx
- lib/knowns/icons/model-icons.tsx
- lib/knowns/icons/tool-icons.tsx
- lib/knowns/icons/model-icons.data.ts
- lib/knowns/icons/tool-icons.data.ts
- lib/knowns/icons/LICENSES.md
- components/ui/knowns/illustrations/tool-beam.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/tool-beam, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "tool-beam" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- left
{ name, icon? }[]- Default
Gmail, Notion, Google Drive - Up to 4 tools feeding your product: pulses flow in.
- right
{ name, icon? }[]- Default
Slack, GitHub, Linear, Postgres - Up to 4 tools your product acts on: pulses flow out.
- hub
ReactNode- Default
a layers glyph - Your product's mark in the middle.
- hubLabel
string- Default
"Your app" - Name used in the accessible label.
- caption
ReactNode- Default
"N connected" - The pill under the hub.
- speed
number- Default
1 - 1 = one pulse every 2.4s per beam.
- paused
boolean- Default
false - Hold every beam.
- Interaction
-- Hover or focus a tool to bring its beam forward; click it (aria-pressed) to pause that beam.
- Motion
-- CSS only (transform, opacity, stroke-dashoffset). Pauses offscreen, in hidden tabs and on paused; prefers-reduced-motion shows a still, composed frame.
| Prop | Type | Default | Description |
|---|---|---|---|
| left | { name, icon? }[] | Gmail, Notion, Google Drive | Up to 4 tools feeding your product: pulses flow in. |
| right | { name, icon? }[] | Slack, GitHub, Linear, Postgres | Up to 4 tools your product acts on: pulses flow out. |
| hub | ReactNode | a layers glyph | Your product's mark in the middle. |
| hubLabel | string | "Your app" | Name used in the accessible label. |
| caption | ReactNode | "N connected" | The pill under the hub. |
| speed | number | 1 | 1 = one pulse every 2.4s per beam. |
| paused | boolean | false | Hold every beam. |
| Interaction | - | - | Hover or focus a tool to bring its beam forward; click it (aria-pressed) to pause that beam. |
| Motion | - | - | CSS only (transform, opacity, stroke-dashoffset). Pauses offscreen, in hidden tabs and on paused; prefers-reduced-motion shows a still, composed frame. |
What it handles
- 01Places your product tile in the middle, up to four `left` tools that feed it and up to four `right` tools it acts on, joined by curved beams.
- 02Runs a bright pulse with a soft wide copy along every beam, staggered so no two start together, and `speed` sets the pulse period (1 is 2.4 seconds).
- 03Replaces the default stacked-layers mark with your own logo through `hub`, and names it with `hubLabel` for the accessible label.
- 04Shows a pill under the hub that reads "N connected" by default and takes any text through `caption`.
- 05Brings a beam forward on hover or focus of its tool and dims the others, and the beam pulses faster while it is focused.
- 06Turns each tool into a button with `aria-pressed`, so a click or Enter pauses that one beam and marks the tool with a small pause badge.
States
- First render
- Nothing. It paints as it is
- none
- Beam pulses
- Dashes run along each beam in a loop that runs on its own
- none
- Hub halo and caption dot
- The glow and the green dot breathe in a loop that runs on its own
- none
- Tool hover or focus
- The tile scales up and its shadow changes
- 280ms, ease out
- Beam focus
- The other beams fade back, and the focused beam speeds up
- none
- Beam held
- Only that beam stops, and its tile gains a ring and a pause badge
- none, at once
- Reduced motion
- The loops are removed and the tile scale stops
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. It paints as it is | none |
| Beam pulses | Dashes run along each beam in a loop that runs on its own | none |
| Hub halo and caption dot | The glow and the green dot breathe in a loop that runs on its own | none |
| Tool hover or focus | The tile scales up and its shadow changes | 280ms, ease out |
| Beam focus | The other beams fade back, and the focused beam speeds up | none |
| Beam held | Only that beam stops, and its tile gains a ring and a pause badge | none, at once |
| Reduced motion | The loops are removed and the tile scale stops | 0ms |
Works with
When to use
When to use
- Feature sections about integrations: your product in the middle, the tools it connects around it.
- Landing pages where hovering a tool should highlight its connection.
When not to use
- A plain list of supported tools: a logo grid reads faster.
- Model providers drifting by: use Model Reel.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Tool Beam to my app and wire it to my own data.
- I need feature sections about integrations: your product in the middle, the tools it connects around it. Set that up with the Knowns UI Tool Beam.
- Which Tool Beam props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "tool-beam" }) and search_docs({ query: "tool beam" }).