llms.txt
Compare with other sites' llms.txt files →# affectUI
> Agent-ready React UI for AI products and SaaS: 171 components, screens, blocks, illustrations and motion effects. Every item is one .tsx file with its styles inside – no Tailwind, no animation library, no other dependencies. React 19, dark mode and reduced motion built in.
46 items are free and open source (MIT). The other 125 are part of affectUI Pro, a one-time purchase (https://www.affectui.com/pricing).
## How to add an item
- Free items: `npx shadcn@latest add https://www.affectui.com/r/<slug>.json` – the file lands in components/ui.
- Short names: register `"@affectui": "https://www.affectui.com/r/{name}.json"` under "registries" in components.json, then `npx shadcn@latest add @affectui/<slug>`.
- Pro items: the same commands, with the buyer's access key (AFFECTUI_TOKEN, created under https://www.affectui.com/account/downloads) sent as `Authorization: Bearer <key>` – set it as a header on the @affectui registry in components.json. Without a key the registry answers 401.
- Import from `@/components/ui/<slug>` and keep the component's own styles and motion; adapt only content and props.
- MCP server: https://www.affectui.com/api/mcp (Streamable HTTP) – search items, read docs and fetch source from Claude Code, Cursor, VS Code or Codex.
## Docs
- [Introduction](https://www.affectui.com/docs/introduction): what affectUI is, free and Pro
- [Installation](https://www.affectui.com/docs/installation): shadcn CLI, short names, Pro access key
- [Theming](https://www.affectui.com/docs/theming): colors via CSS variables, dark mode
- [Accessibility](https://www.affectui.com/docs/accessibility): keyboard, focus, reduced motion
- [Using with AI](https://www.affectui.com/docs/ai): prompts and setup for coding assistants
- [Full docs in one file](https://www.affectui.com/llms-full.txt): every item's usage, props and notes
## Guides
- [React components for AI chat interfaces](https://www.affectui.com/guides/ai-chat-ui-components-react): What an AI chat UI needs – composer, streaming answers, thinking states, tool calls, citations, message actions – and React components for each.
- [How to build an agent dashboard in React](https://www.affectui.com/guides/agent-dashboard-react): The views an AI agent dashboard needs – what's running, who started what, what needs a person, what it cost – and React components for each.
- [Human-in-the-loop UI: approvals, permissions and autonomy](https://www.affectui.com/guides/human-in-the-loop-ui): UI patterns for keeping people in control of AI agents – approval cards, permission requests, autonomy levels, steering and reviewing changes.
- [How to show tool calls in an AI agent UI](https://www.affectui.com/guides/tool-calls-agent-ui): How to display an agent's tool calls – one readable line per call, arguments and results on demand, errors with retry – and when to switch to a trace or a graph.
- [Streaming AI responses in React without layout shift](https://www.affectui.com/guides/streaming-ai-responses-react): How to render streamed LLM answers in React so the page doesn't jump – stable containers, a clear thinking state, smooth text, and actions that appear in place.
- [Model picker UI: letting users choose an LLM](https://www.affectui.com/guides/model-picker-ui): How to design a model picker for an AI product – what to show per model, defaults, reasoning settings, and what happens when a model fails.
- [How to show AI agent costs and token usage](https://www.affectui.com/guides/ai-agent-costs-token-usage-ui): UI patterns for showing what AI agents cost – per run, per step and per agent – plus token usage, context limits and budgets.
- [How to show what an AI agent is doing](https://www.affectui.com/guides/show-what-ai-agent-is-doing): UI patterns that make an AI agent's work visible – the current step, its plan, tool calls, a live tree or timeline, and a trace of where time and money went.
- [Approval UI for AI agents: what to show before an agent acts](https://www.affectui.com/guides/approval-ui-ai-agents): How to design the approval step for AI agent actions – what the card must show, risk levels, timeouts, batching many requests, and undo after approval.
- [Multi-agent UI in React: orchestrators, sub-agents and hand-offs](https://www.affectui.com/guides/multi-agent-ui-react): How to show several AI agents working together – who started whom, who is busy, hand-offs, parallel work, conflicts and the queue – with React components for each.
- [Context window UI: showing what fills an LLM's context](https://www.affectui.com/guides/context-window-ui): How to show an LLM's context window to users – what takes up space, how full it is, what to remove, when to compact, and how memory fits in.
- [MCP UI in React: tool calls, results and approvals](https://www.affectui.com/guides/mcp-ui-react): Build the interface around MCP tools: visible calls, useful results, approvals and errors. Understand where the protocol ends and your React UI begins.
- [Generative UI in React: turn tool results into useful views](https://www.affectui.com/guides/generative-ui-react): Use model-selected tools and validated data to show React views. Build useful generative UI without executing arbitrary model-generated code.
- [Agent UI in React: tasks, progress and human control](https://www.affectui.com/guides/agent-ui-react): Design an agent UI around delegated work: a clear task, visible progress, reviewable actions and a result people can verify.
## Comparisons
- [affectUI compared](https://www.affectui.com/compare): one table of affectUI, shadcn/ui, AI Elements, assistant-ui, Aceternity UI and Magic UI
- [affectUI vs shadcn/ui](https://www.affectui.com/compare/shadcn-ui): How affectUI and shadcn/ui differ, where each fits, and how to use them together in one React project.
- [affectUI vs AI Elements](https://www.affectui.com/compare/ai-elements): How affectUI and Vercel's AI Elements differ – what each covers, what it needs to run, how it connects to the AI SDK – and how to use them together.
- [affectUI vs assistant-ui](https://www.affectui.com/compare/assistant-ui): How affectUI and assistant-ui differ – a chat framework with runtimes versus finished components for AI products – and how to combine them.
- [affectUI vs CopilotKit](https://www.affectui.com/compare/copilotkit): How affectUI and CopilotKit differ – a framework that connects agents to your app versus finished components for AI products – and how to use them together.
- [affectUI vs prompt-kit](https://www.affectui.com/compare/prompt-kit): How affectUI and prompt-kit differ – chat building blocks on shadcn/ui and Tailwind versus finished components for AI products and agents – and when to use which.
- [affectUI vs Aceternity UI and Magic UI](https://www.affectui.com/compare/aceternity-magic-ui): How affectUI differs from Aceternity UI and Magic UI – components for the AI product itself versus animated sections for landing pages – and when to use which.
- [affectUI vs Arc UI](https://www.affectui.com/compare/arc-ui): How affectUI and Arc UI differ – a broad animated library for product UI versus components made for AI agent products – and when to pick which.
- [affectUI vs BoardUI](https://www.affectui.com/compare/boardui): How affectUI and BoardUI differ – a dashboard design system on Tailwind and React Aria versus self-contained components for AI agent products – and when to pick which.
- [affectUI vs Untitled UI](https://www.affectui.com/compare/untitled-ui): How affectUI and Untitled UI differ – a complete design system in Figma and React versus components made for AI agent products – and how they fit together.
- [affectUI vs 21st.dev](https://www.affectui.com/compare/21st-dev): How affectUI and 21st.dev differ – a marketplace of community components on a subscription versus one consistent library for AI agent products, paid once – and when to pick which.
## Components
- [Agent Checkpoints](https://www.affectui.com/components/agent-checkpoints): An agent's run as a line of checkpoints, like git for agents – rewind to any of them and a new attempt branches out of it, while the one it left fades back but stays (Pro, Agents)
- [Agent Cursors](https://www.affectui.com/components/agent-cursors): Agents working in a document like teammates in a multiplayer editor – live pointers with names, suggestions typed letter by letter, images they resize, code they fix and comments beside the page (Pro, Agents)
- [Agent Findings](https://www.affectui.com/components/agent-findings): A swarm of agents checking something – one calm row per agent with its progress, and their findings sliding into a short feed as they're found (Pro, Agents)
- [Agent Fleet](https://www.affectui.com/components/agent-fleet): Several agents side by side – each card sums up its sub-agents, and a click opens its tree to the right while the last one folds back into its card (Pro, Agents)
- [Agent Graph](https://www.affectui.com/components/agent-graph): Agents and the tools they call as a living network – a pulse along the link for every call and its answer, busy links growing thicker, agents that breathe while they work and turn amber when they need you (Pro, Agents)
- [Agent Handoff](https://www.affectui.com/components/agent-handoff): A task passed from agent to agent like a relay – at every handoff what went along to the next one, and what got lost on the way (Pro, Agents)
- [Agent Inbox](https://www.affectui.com/components/agent-inbox): All your background agent tasks in one calm list – live clocks and status tags, filter tabs with rolling counts, rows that unfold to the last steps with Approve, Reject, Retry or Open, and glide to their new place (Pro, Agents)
- [Agent Lanes](https://www.affectui.com/components/agent-lanes): Where every agent is right now – a live timeline with a lane per agent, tasks growing into “now”, hand-offs drawn between agents and approvals right on the block (Pro, Agents)
- [Agent Ledger](https://www.affectui.com/components/agent-ledger): Everything an agent changed in your systems, each change with an undo – before and after per row, and pointing at Undo shows what builds on it: what would be undone too, and what can't be taken back (Pro, Agents)
- [Agent Monitor](https://www.affectui.com/components/agent-monitor): One agent at work, as a card – its current step with a clock and the bill so far, a time strip and the finished steps with the logo of each tool, a click on any of them for the details; the exact command when it needs your OK; folds into a small bar with the tools it has used (Pro, Agents)
- [Agent Plan](https://www.affectui.com/components/agent-plan): An agent's step-by-step plan to review before it runs – rename, drag to reorder, remove or add steps, then watch each one run with live timers and retry from a failed step (Pro, Agents)
- [Agent Queue](https://www.affectui.com/components/agent-queue): The work waiting for your agents, and how fast it moves – jobs drop into a live queue, glide into free worker slots as growing bars and land in Done or Failed, while a depth chart shows the backlog build up when a rate limit pauses the workers and drain when they resume (Pro, Agents)
- [Agent Recap](https://www.affectui.com/components/agent-recap): What the agents did while you were away – the night as a small chart with a peak per event, then a board of what needs you, what failed and what's done, acted on right on the card (Pro, Agents)
- [Agent Steering](https://www.affectui.com/components/agent-steering): Steer an agent while it works – queue a note for the next step and watch it glide into the plan when the agent picks it up, or interrupt right away (Pro, Agents)
- [Agent Trail](https://www.affectui.com/components/agent-trail): The steps an agent works through, as one quiet trail – a header with the task and "3/5", done ones with a check and their time, the one it is on says what it is doing and branches into its sub-steps with a live timer, a step that needs approval waits with a dashed ring; a short fading light runs down the trail into the sub-step it is on (Pro, Agents)
- [Agent Tree](https://www.affectui.com/components/agent-tree): Who started whom – an orchestrator and its sub-agents as a live tree, with status, cost and time on every card, costs rolling up each branch, and branches that fold to one line (Pro, Agents)
- [AI Answer](https://www.affectui.com/components/ai-answer): Streamed answer with source cards, citation chips that preview their source, copy, regenerate, feedback and follow-ups (Pro, Chat)
- [Approval Card](https://www.affectui.com/components/approval-card): An agent asks before it acts – risk badge, preview, Approve and Deny with shortcuts, a pausing countdown, and a smooth morph into a resolved row (Pro, Agents)
- [Approval Gates](https://www.affectui.com/components/approval-gates): The approval requests of an agent run as a stack of cards – the one to decide now on top with who asks, what exactly and why, the diff or arguments on it; approve, reject or change it first, and it drops into the decided list while the next rises – open ones hold the steps behind them (Pro, Agents)
- [Autonomy Dial](https://www.affectui.com/components/autonomy-dial): How much an agent may do on its own – a three-stop dial, and its real actions gliding between “Runs on its own” and “Asks you first”, with a lock for what always asks (Pro, Agents)
- [Away Summary](https://www.affectui.com/components/away-summary): The “While you were away” card for a chat thread – right where you left off: how long you were gone, what needs you, what failed and what's done as a short list with one action per row; Got it folds it into a one-line divider (Pro, Agents)
- [Billing Schedule](https://www.affectui.com/components/billing-schedule): Build a billing phase – start date, duration, products with repeats and timing, discount, minimum and live totals (Pro, Inputs)
- [Breakdown Chart](https://www.affectui.com/components/breakdown-chart): Stacked bar chart with measure, slice and segment pickers, a hover breakdown and a linked table (Pro, Data display)
- [Button](https://www.affectui.com/components/button): Primary, secondary, ghost and destructive buttons with icons, sizes and a shimmering loading state (Free, Buttons)
- [Change Summary](https://www.affectui.com/components/change-summary): What moved since last time – one metric per row with a colored trend (Free, Data display)
- [Chat Composer](https://www.affectui.com/components/chat-composer): Prompt composer with model picker, voice input, app connections and approval request (Pro, Chat)
- [Checkbox](https://www.affectui.com/components/checkbox): A real checkbox with a label and a second line, a some-of-them state for Select all, an error and a card row – the check draws itself (Free, Inputs)
- [Cited Answer](https://www.affectui.com/components/cited-answer): An AI answer wired to its sources – point at a citation to light up its sentence and source, click to unfold the quoted passage with the matching words marked (Pro, Chat)
- [Collaboration Stream](https://www.affectui.com/components/collaboration-stream): What agents actually say to each other – a quiet chat where every message shows who it is from and who it is for, handoffs and questions for you tagged, files as chips that open a preview, a card with details under every message, and a composer to name agents with @ or answer a question (Pro, Agents)
- [Combobox](https://www.affectui.com/components/combobox): Pick one or many from a searchable, grouped list – chips with avatars, highlighted matches, create-on-the-fly and full keyboard support (Pro, Inputs)
- [Command Menu](https://www.affectui.com/components/command-menu): Search and run anything from one field – tool actions with logos and ⌘1–⌘5, everyday commands with icons (Pro, Navigation)
- [Comment Thread](https://www.affectui.com/components/comment-thread): One comment with replies – an assistant reports what it did, folds open details and answers @mentions (Free, Chat)
- [Comments Panel](https://www.affectui.com/components/comments-panel): Comment feed with filters, runnable /edit commands, resolve and a composer (Pro, Chat)
- [Compact Breakdown](https://www.affectui.com/components/compact-breakdown): A total split into its parts in one small card – numbers roll, the bar glides and the ranked rows trade places when the period changes (Pro, Data display)
- [Conflict Radar](https://www.affectui.com/components/conflict-radar): Agents working on their own branches at once, and where they get in each other's way – a row per file and a column per agent, a line between the agents that changed the same lines, each agent's way in one sentence to pick from, and Merge once all are settled (Pro, Agents)
- [Context Map](https://www.affectui.com/components/context-map): What fills an agent's context window, as a living treemap – system prompt, tools, memory, every file, the chat and tool results as tiles that glide as it grows, the free space dashed, and compaction squeezing old turns into a summary (Pro, Agents)
- [Context Window](https://www.affectui.com/components/context-window): What fills the model's context, as a field of cells – hover a part to light it up, remove files, and compact the conversation while its cells shimmer and clear (Pro, Agents)
- [Cost Waterfall](https://www.affectui.com/components/cost-waterfall): Where the money and tokens of an agent run go – every LLM call, tool call and sub-agent as a step in a waterfall, with model, tokens, cost and time, the most expensive step on top and a switch between cost and tokens (Pro, Agents)
- [Data Table](https://www.affectui.com/components/data-table): Spreadsheet-style table: select cells and ranges, edit in place, copy and paste, undo and sort (Pro, Data display)
- [Date Range Picker](https://www.affectui.com/components/date-range-picker): Presets and two calendars with a hover preview, comparison with the previous period or year, full keyboard control (Pro, Inputs)
- [Decision Card](https://www.affectui.com/components/decision-card): An agent's question, asked the way Claude asks one – its own card just above the chat composer: numbered options with one Recommended, Approve / Decline for an approval, preview tiles for a pick, and a last row for your own words; a click or 1–5 answers, Later folds it to one line (Pro, Agents)
- [Decision Inbox](https://www.affectui.com/components/decision-inbox): Open decisions with two quick answers each – answered ones confirm and fold away (Free, Feedback)
- [Decision Tree](https://www.affectui.com/components/decision-tree): An agent stuck on a decision lays out its options as a tree – the consequences of each branch, the risky ones marked, its own pick highlighted – and you choose a path or write your own (Pro, Agents)
- [Delegate Board](https://www.affectui.com/components/delegate-board): Hand work to your agents by dragging it onto them – each agent previews its new “busy until” time, or switch to Auto and every new task goes to whoever is free first (Pro, Agents)
- [Dropzone](https://www.affectui.com/components/dropzone): Drag files in and watch them upload – fanning documents, colored type badges, progress with time left, errors with retry (Pro, Inputs)
- [Email Draft](https://www.affectui.com/components/email-draft): Agent-written email for review – switch recipient and tone, edit inline, remove the attachment, send or discard with undo (Free, Cards)
- [Experiment Card](https://www.affectui.com/components/experiment-card): An A/B test in two lines that quietly unfolds on hover – variants linked to a tiny chart, a metric switch with rolling numbers, and a winner you pick with a click (Pro, Data display)
- [Fallback Chain](https://www.affectui.com/components/fallback-chain): One request finding a model that answers, as a small flow diagram – the request branches out to each model in its fallback order, a light runs to the one being tried, failed branches break red, and the one that answers