DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
AI Chat13
  • Copilot Shell
  • Docked Assistant
  • Prompt Starter Welcome
  • Quote Reply Sidebar
  • Connected Apps Chat
  • Agentic Task Panel
  • Model Comparison
  • Voice Assistant Panel
  • Branching Thread
  • Structured Answers
  • Answer Receipts
  • Docs Support Assistant
  • Corner Chat Popup
Agent Activity5
AI UsageNew AI Usage category with 2 spend blocks2

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.

Best for: A pair of Resizable model panes on one prompt, with a scroll lock and a latency, tokens per second and cost strip ending in an A or B vote

When to use

  • A full page assistant chat, new chat welcome screen or 2 model comparison inside an AI product
  • A copilot docked beside the page it works on, or opened from a launcher in the page corner
  • Answers that show the work behind them: sources read, tool steps, plans to approve and run cost

When not to use

  • One assistant answering in a full page transcript, with pinned and recent threads: use the Copilot Shell block
  • Shoppers weighing 3 picked products by rating, price and a feature checklist: use the Buying Guide Picks block
  • The product layout around the chat: a sidebar of threads, workspaces and account menus: use the App Shell blocks
  • A plain overlay chat panel opened from a button, with suggestion chips and a composer: use the Sheet blocks
  • A highlighted snippet with a filename header and copy button, outside any conversation: use the Code Block component

Agent notes

  • Replace MODELS, SEED_TURNS, CONTEXT_FILE and EXTRA_FILES; answerFor picks canned answers from ANSWER_LIBRARY by prompt keyword
  • Latency, tok/s and cost come from each answer's recorded latencyMs and tokensOut and the model's priceIn and priceOut, not from a live run
  • The rateLimited flag on Gemini 3 Pro fakes a RATE_LIMIT 429 that Retry clears through limitCleared, and handleVote keeps votes in local state
  • Each AiChat root sizes itself to the viewport with h-svh, or min-h-svh in ai-chat-5; give it your layout's height inside an app shell
  • Every reply is canned content from the block's data file, played back on setTimeout and setInterval timers; stream your model's output there instead

Third-party API docs

  • React Resizable Panels v4: API reference, docs, through shadcn Resizable (v4 names its parts Group, Panel and Separator (v3 docs say PanelGroup))
  • Shiki v4: API reference, docs, through ReUI Code Block
Markdownhttps://reui.io/blocks/ai-agents/ai-chat/ai-chat-7.md
MCPget_block("ai-chat-7")
Installnpx shadcn@latest add @reui/ai-chat-7
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in the Model Comparison Block

  • AlertReUI
  • Attachment
  • BadgeReUI
  • Bubble
  • Button
  • Code BlockReUI
  • Dropdown Menu
  • Empty
  • Field
  • Input Group
  • Item
  • Kbd
  • Marker
  • Message
  • Message Scroller
  • Resizable
  • Scroll Area
  • Select
  • Spinner
  • Table
  • Tabs
  • Toggle Group
  • Tooltip

Dependencies

  • cn

Shadcn Model Comparison Block

Split pane model comparison running one prompt against two AI models. Part of the ReUI Shadcn AI & Agents AI Chat blocks collection.

Side by side compare view: two resizable panes answer one docked prompt and stream at different speeds, with sortable data tables in the replies, a scroll lock that reads both answers at the same depth, and per answer copy and rating actions. Select a line to ask both models about it, regenerate or swap either pane, attach extra files, and watch a mirrored scoreboard for latency, output rate and cost settle into a verdict with an A or B vote.

It is composed from Alert, Attachment, Badge, Bubble, Button, Code Block, Dropdown Menu, Empty, and more, so every part of it is a primitive you can restyle with your own design tokens.

What You Can Build With the Model Comparison Block

  • Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
  • Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
  • Combine it with the other Shadcn AI & Agents AI Chat blocks to assemble a full screen instead of a single section.

All Shadcn AI & Agents AI Chat Blocks

The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.

  • Copilot Shell AI copilot chat surface with streaming transcript and recent chats
  • Docked Assistant Docked AI assistant chat panel beside a page with insert into draft
  • Prompt Starter Welcome AI chat welcome screen with prompt starters and a docked composer
  • Quote Reply Sidebar Floating right chat sidebar that pushes the page and replies to a quoted sentence
  • Connected Apps Chat AI chat welcome screen where connected work apps set the answer scope
  • Agentic Task Panel Agentic side panel where the answers carry the controls
  • Voice Assistant Panel Docked voice first assistant panel that answers in a different shape each time
  • Branching Thread Branching AI chat thread with reply versions, cited sources and code artifacts
  • Structured Answers AI chat welcome screen with scoped sources and structured answers
  • Answer Receipts AI chat stage with framed answer receipts on a live dot field
  • Docs Support Assistant Ask AI docs support panel that shows the knowledge base being read
  • Corner Chat Popup Corner AI chat popup with history, expand and page context

Related Shadcn AI & Agents Block Categories

  • Agent Activity (5) Agent run views, from live step feeds and approvals to research traces, MCP call tables, and run reports.
  • AI Usage (2) Spend planning and month to date spend views for AI product workspaces, by token volume, model, budget and caps.

All Shadcn Block Groups

Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.

  • Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
  • Shadcn Data Grid Blocks (44) Browse 44 Shadcn Data Grid blocks across 9 categories.
  • Shadcn Charts Blocks (51) Browse 51 Shadcn Charts blocks across 10 categories.
  • Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
  • Shadcn AI & Agents Blocks (20) Browse 20 Shadcn AI & Agents blocks across 3 categories.
  • Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
  • Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.

Frequently Asked Questions

When should I use the Model Comparison block?

Use it for a pair of Resizable model panes on one prompt, with a scroll lock and a latency, tokens per second and cost strip ending in an A or B vote.

The AI Chat category fits:

  • A full page assistant chat, new chat welcome screen or 2 model comparison inside an AI product
  • A copilot docked beside the page it works on, or opened from a launcher in the page corner
  • Answers that show the work behind them: sources read, tool steps, plans to approve and run cost

For one assistant answering in a full page transcript, with pinned and recent threads, use the Copilot Shell block. For shoppers weighing 3 picked products by rating, price and a feature checklist, use the Buying Guide Picks block. For the product layout around the chat: a sidebar of threads, workspaces and account menus, use the App Shell blocks. For a plain overlay chat panel opened from a button, with suggestion chips and a composer, use the Sheet blocks. For a highlighted snippet with a filename header and copy button, outside any conversation, use the Code Block component.

What is the Model Comparison block built with?

Model Comparison uses Alert, Attachment, Badge, Bubble, Button, Code Block, Dropdown Menu, Empty, Field, Input Group, Item, Kbd, Marker, Message, Message Scroller, Resizable, Scroll Area, Select, Spinner, Table, Tabs, Toggle Group, Tooltip. Installing the block through the ReUI registry pulls those dependencies in for you.

Can I restyle the Model Comparison block?

Yes. It reads your design tokens, so switching style, radius, base color, font, or icon library in the customizer restyles it without touching the markup.

How should I use Shadcn ai chat blocks in a real project?

Treat them as structured starting points. Keep the layout, hierarchy, and interaction ideas that work, then replace placeholder content, data wiring, and business logic with your own product requirements.
PreviousAgentic Task PanelNextVoice Assistant Panel

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. AI & Agents
  3. AI Chat
  4. Model Comparison
MarkdownShare

Shadcn Model Comparison

Side by side compare view: two resizable panes answer one docked prompt and stream at different speeds, with sortable data tables in the replies, a scroll lock that reads both answers at the same depth, and per answer copy and rating actions. Select a line to ask both models about it, regenerate or swap either pane, attach extra files, and watch a mirrored scoreboard for latency, output rate and cost settle into a verdict with an A or B vote.