AI Agents

Animated React components for agent reasoning, progress, tool activity, and conversational AI interfaces.

14 components with live previews

Message Bubble

Live

A focused conversational surface with visual tones, independent alignment, grouped messages, expandable content, and interactive link or button support.

Install
pnpm dlx shadcn@latest add @beui/message-bubble
Files (1)
  • components/agents/message-bubble.tsx

Message

Live

Composable conversation primitives for message rows, grouped bubbles, avatars, metadata, live markers, and a mount-only trailing-edge pop-up for newly sent rows.

Install
pnpm dlx shadcn@latest add @beui/message
Files (1)
  • components/agents/message.tsx

Message Scroller

Live

A reader-aware conversation viewport that follows streamed output at the live edge and releases control when the reader moves away.

Install
pnpm dlx shadcn@latest add @beui/message-scroller
Files (1)
  • components/agents/message-scroller.tsx

Prompt Input

Live

An auto-growing agent composer with prompt actions, model selection, keyboard submission, and animated send and stop states.

Install
pnpm dlx shadcn@latest add @beui/prompt-input
Files (1)
  • components/agents/prompt-input.tsx

Todo List

Live

A collapsible agent task plan with morphing status marks, a completion count, compact metadata, and smooth list updates.

Install
pnpm dlx shadcn@latest add @beui/todo-list
Files (1)
  • components/agents/todo-list.tsx

Code Block

Live

A syntax-highlighted code surface with stable streaming updates, line numbers, focused lines, smooth following, and copy feedback.

Install
pnpm dlx shadcn@latest add @beui/code-block
Files (1)
  • components/agents/code-block.tsx

Approval Card

A human-in-the-loop decision surface for approvals, single or multiple-choice questions, custom responses, and multi-step review flows.

Collection component

Install
pnpm dlx shadcn@latest add @beui/approval-card
Files (2)
  • components/agents/approval-card/index.tsx
  • components/agents/approval-card/types.ts

File Diff

Live

A syntax-highlighted file change disclosure with progressive rows, line numbers, live change counts, smooth following, and completion collapse.

Install
pnpm dlx shadcn@latest add @beui/file-diff
Files (1)
  • components/agents/file-diff.tsx

Tool Result

A lightweight execution disclosure for syntax-highlighted terminal output and request responses that collapses into a compact completed state.

Collection component

Install
pnpm dlx shadcn@latest add @beui/tool-result
Files (1)
  • components/agents/tool-result.tsx

Streaming Response

Live

A stable response surface with completion actions, rendered content, and an expandable source summary.

Install
pnpm dlx shadcn@latest add @beui/streaming-response
Files (1)
  • components/agents/streaming-response.tsx

Image Generation

Live

A stable generated-image surface that moves from queued work through progressive refinement to a completed result without layout shift.

Install
pnpm dlx shadcn@latest add @beui/image-generation
Files (1)
  • components/agents/image-generation.tsx

Tool Approval

Live

A human-in-the-loop permission card for reviewing tool details, allowing once, remembering access, or denying execution.

Install
pnpm dlx shadcn@latest add @beui/tool-approval
Files (1)
  • components/agents/tool-approval.tsx

Citations

Live

Inline citation markers paired with a collapsible, progressively rendered reference collection for grounded agent responses.

Install
pnpm dlx shadcn@latest add @beui/citations
Files (1)
  • components/agents/citations.tsx

Agent Activity

Live

One adaptive activity stream for reasoning, searches, tool calls, structured execution traces, or a chronological mix.

Install
pnpm dlx shadcn@latest add @beui/agent-activity
Files (3)
  • components/agents/agent-activity/activity-row.tsx
  • components/agents/agent-activity/index.tsx
  • components/agents/agent-activity/types.ts

Agent Loading States

Three thoughtful loading states for AI interfaces: shimmering status text, live agent progress, and cycling reasoning phrases.

Collection component

Install
pnpm dlx shadcn@latest add @beui/loading-states
Files (4)
  • components/agents/loading-states/agent-progress.tsx
  • components/agents/loading-states/index.ts
  • components/agents/loading-states/reasoning-text.tsx
  • components/agents/loading-states/thinking-shimmer.tsx

AI Sidebar

Live

A collapsible AI workspace sidebar for folders, projects, files, and bookmarks with keyboard navigation, optimistic moves, inline rename, and overflow-aware labels.

Install
pnpm dlx shadcn@latest add @beui/ai-sidebar
Files (1)
  • components/agents/ai-sidebar.tsx

Chat App

Live

A complete agent conversation workspace composing navigation, messages, streaming, planning, approvals, tools, code, diffs, generated media, sources, and prompt input.

Install
pnpm dlx shadcn@latest add @beui/chat-app
Files (1)
  • components/agents/chat-app.tsx