# AI Components

Free React components for AI apps: chat inputs with model pickers, tool approvals, citations, diff review, streaming states and more, built with Tailwind CSS.

Components for the parts of an AI product people actually touch: the prompt box, the model and effort pickers, tool calls waiting for approval, sources and citations, and the states in between while a reply streams in. Each one is a React component built with Tailwind CSS and Motion, installed with the shadcn CLI.

- [AI-01 AI Input Selector](/content/docs/ai/ai-prompt/index.html) Updated AI chat input with a model menu, a separate Effort control, file chips you can drop or paste, a / command menu, and Stop while replying.
- [AI-02 AI Input Search](/content/docs/ai/ai-input-search/index.html) Updated AI composer with a Tools menu (browse, investigate, draft, run code, reason), a model picker and a live trace that stacks each source's avatar as it is read.
- [AI-03 AI State Loading](/content/docs/ai/ai-loading/index.html) Updated Agent progress as a list of steps with a live log, elapsed time and a summary when done.
- [AI-04 AI Text Loading](/content/docs/ai/ai-text-loading/index.html) Updated AI thinking text with a soft wave through the letters and words that swap letter by letter.
- [AI-05 AI Voice](/content/docs/ai/ai-voice/index.html) Updated Voice input with a scrolling waveform, then a take you can play back, discard or send.
- [AI-06 AI Tool Approval](/content/docs/ai/ai-tool-approval/index.html) New Approve or deny an agent's tool calls. Destructive calls need a press and hold, and decided calls fold into a trace with their output.
- [AI-07 AI Tool Calls](/content/docs/ai/ai-tool-calls/index.html) New Tool calls inside a chat reply. Each call streams in as one row with a live timer, then they fold into a single line once the answer is ready.
- [AI-08 AI Checkout](/content/docs/ai/ai-checkout/index.html) New An order the assistant puts together, paid without leaving the chat. The button fills while the charge runs, then the card folds into a one-line receipt.
- [AI-09 AI Connect](/content/docs/ai/ai-connect/index.html) New A tool call that stops because an app is not connected. Connect it right in the message, and the call picks up where it stopped.
- [AI-10 AI Send](/content/docs/ai/ai-send/index.html) New An email the assistant drafted, editable in place. Send starts a short countdown you can undo before anything goes out.
- [AI-11 AI Schedule](/content/docs/ai/ai-schedule/index.html) New Meeting times the assistant found, each with a strip of both calendars so you can see why it is free. Booking folds the list into the event.
- [AI-12 AI Attachment](/content/docs/ai/ai-attachment/index.html) New A file dropped into the chat uploads, then the assistant reads it page by page. Page citations in the answer light up the page they point at.
- [AI-13 AI Code Run](/content/docs/ai/ai-code-run/index.html) New The assistant runs a short Python script in the reply. A marker steps down the lines, the output prints, and the chart it draws grows in.
- [AI-14 AI Order Status](/content/docs/ai/ai-order-status/index.html) New A live delivery card in the reply. The courier moves along the route while the ETA counts down, and the route turns green on arrival.
- [AI-15 AI Handoff](/content/docs/ai/ai-handoff/index.html) New The assistant hands the chat to a person, with what they will see so you don't repeat yourself. The queue counts down and the agent joins the thread.
- [AI-16 AI Context Meter](/content/docs/ai/ai-context-meter/index.html) New How full the context window is, as a ring in the prompt footer that opens a breakdown by source and compacts when it fills.
- [AI-17 AI Inline Citations](/content/docs/ai/ai-citations/index.html) New An answer with source chips beside each claim. One preview glides between chips and lights up the sentence it backs.
- [AI-18 AI Diff Review](/content/docs/ai/ai-diff-review/index.html) New A coding agent's edits streaming in file by file, then reviewed per file with accept, reject and undo.
- [AI-19 AI Model Selector](/content/docs/ai/ai-model-selector/index.html) New Pick a model and how hard it thinks. Effort is a detent track that reshapes for each model and keeps your level when you switch.
- [AI-20 AI Token Alternatives](/content/docs/ai/ai-token-alternatives/index.html) New An answer where every unsure word shows what else the model weighed. Pick another word and the reply writes itself again from there.
- [AI-21 AI Conversation Branches](/content/docs/ai/ai-branches/index.html) New A chat where editing a message starts a new branch. A small tree beside it shows every version, and you can jump between them.
- [AI-22 AI Agent Lanes](/content/docs/ai/ai-agent-lanes/index.html) New A lead agent hands work to sub-agents that run side by side. Each gets a lane of tool calls, and you can scrub through the whole run.
- [AI-23 AI Inline Edit](/content/docs/ai/ai-inline-edit/index.html) New Select text in a document and ask AI to rewrite it. The edit streams in place as a word-level diff you accept, discard or try again.
- [AI-24 AI Message Queue](/content/docs/ai/ai-message-queue/index.html) New Keep typing while the agent works. Follow-ups stack above the composer, where you can reorder, edit or send one now, and go in one by one when the run ends.
- [AI-25 AI Redact](/content/docs/ai/ai-redact/index.html) New Masks names, emails, card numbers and keys as placeholders before a prompt is sent, then fills the real values back into the reply.
- [AI-26 AI Memory](/content/docs/ai/ai-memory/index.html) New An assistant that saves what it learns about you into a memory list. New facts replace the ones they contradict, and you can edit or forget any of them.
- [AI-27 AI Autocomplete](/content/docs/ai/ai-autocomplete/index.html) New A text box that suggests how your sentence ends in grey after the caret. Tab takes it all, the right arrow takes one word, and typing the same letters keeps it.
