Installation
Add Loom's components to an app with shadcn and Tailwind v4, then connect them to your agent.
Loom installs through the shadcn CLI. You need a React 19 app with Tailwind CSS v4 and a components.json. If your app doesn’t have one yet, run npx shadcn@latest init first.
Set up with a coding agent
Add Loom to this app
Add the components
Install the thread and the eve adapter
The thread brings everything it renders with it: messages, tool cards, interactions, the composer, and the theme.
pnpm dlx shadcn@latest add https://loom.mkhonta.com/r/thread.json https://loom.mkhonta.com/r/eve.jsonnpx shadcn@latest add https://loom.mkhonta.com/r/thread.json https://loom.mkhonta.com/r/eve.jsonbunx shadcn@latest add https://loom.mkhonta.com/r/thread.json https://loom.mkhonta.com/r/eve.jsonRender it
"use client";
import { LoomThread } from "@/components/loom/thread";
import { useLoomEve } from "@/lib/loom/eve";
export function Support() {
const chat = useLoomEve({ agent: "support" });
return (
<div className="h-dvh">
<LoomThread chat={chat} title="Support" />
</div>
);
}The thread fills its container, so give the container a height.
What gets added
components/loom/ thread, message-list, message, markdown, tool,
interaction, composer, status
lib/loom/types.ts the data components render
lib/loom/context.tsx LoomProvider: labels, answers, tool renderers
lib/loom/utils.ts
lib/loom/eve.ts useLoomEve
The theme’s tokens go into your global CSS, and the npm packages the components use are installed for you: eve, streamdown, lucide-react, and @ui-sdk/react with @ui-sdk/core.
Shorter commands with a namespace
Register Loom once in components.json, then add items by name:
{
"registries": {
"@loom": "https://loom.mkhonta.com/r/{name}.json"
}
}
npx shadcn@latest add @loom/widget @loom/panel
Items
Each item installs on its own, along with the items it needs.
| Item | What it adds |
|---|---|
thread |
The whole conversation, and everything below it except the layouts, agent picker and session list |
eve |
useLoomEve |
panel, widget, inline, page |
Layouts around the thread. page adds the session list |
command-palette, agent-picker, session-list |
Slash commands in a dialog, choosing the agent, past conversations |
message-list, message, markdown |
The conversation’s parts |
tool, interaction |
Tool cards, approvals, questions and sign-ins |
composer, status |
The message box, activity line, error notice and empty state |
core |
Types, LoomProvider and utilities |
theme |
The loom-* tokens |

