AI Components for React and Tailwind CSS | Kokonut UI
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 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 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 Updated Agent progress as a list of steps with a live log, elapsed time and a summary when done.
- AI-04 AI Text Loading Updated AI thinking text with a soft wave through the letters and words that swap letter by letter.
- AI-05 AI Voice Updated Voice input with a scrolling waveform, then a take you can play back, discard or send.
- AI-06 AI Tool Approval 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.