AI Elements
52 chat-composer building blocks — everything an agent loop renders, from bubbles to tool calls to canvas nodes.
Agent
Agent identity card: header, instructions, tools, and output schema.
@general-design-company/internal-ui/components/ai-elements/agentArtifact
Side-panel artifact with header actions and closable content.
@general-design-company/internal-ui/components/ai-elements/artifactdeploy.sh
Generated script
bun run build bun run deploy
Attachments
File attachment rows with preview, label, info, and remove.
@general-design-company/internal-ui/components/ai-elements/attachments
AudioPlayer
Media-chrome audio player with control bar, seek, time, and volume.
@general-design-company/internal-ui/components/ai-elements/audio-playerCanvas
ReactFlow surface with background, tuned defaults, and delete keys.
@general-design-company/internal-ui/components/ai-elements/canvasChainOfThought
Collapsible reasoning trace with labeled, statused steps.
@general-design-company/internal-ui/components/ai-elements/chain-of-thoughtChatBubble
Sent/received bubbles with avatar, message, timestamp, and actions.
@general-design-company/internal-ui/components/ai-elements/chat-bubbleCheckpoint
Restore point with tooltip trigger for rewinding a session.
@general-design-company/internal-ui/components/ai-elements/checkpointCodeBlock
Shiki-highlighted code with container, header, filename, actions, and copy.
@general-design-company/internal-ui/components/ai-elements/code-blockimport { Button } from "@general-design-company/internal-ui/components/primitives/button";const answer = 42;Commit
Commit card: hash, message, author, timestamp, and per-file changes.
@general-design-company/internal-ui/components/ai-elements/commitConfirmation
Tool-approval card: request, accept/reject states, and action buttons.
@general-design-company/internal-ui/components/ai-elements/confirmationConnection
Custom connection line for dragging edges between canvas nodes.
@general-design-company/internal-ui/components/ai-elements/connectionContext
Token-usage meter: trigger plus input/output/reasoning/cache breakdown.
@general-design-company/internal-ui/components/ai-elements/contextControls
Zoom/fit controls overlay for the canvas.
@general-design-company/internal-ui/components/ai-elements/controlsConversation
Stick-to-bottom message list with empty state, scroll button, and download.
@general-design-company/internal-ui/components/ai-elements/conversationCustomLanguageIcons
Brand icon overrides keyed by language id, layered over the default set.
@general-design-company/internal-ui/components/ai-elements/custom-language-icons4 overrides registeredEdge
Custom edge types (animated + temporary) for canvas connections.
@general-design-company/internal-ui/components/ai-elements/edgeEnvironmentVariables
Secret list with show/hide toggle, groups, and per-value copy.
@general-design-company/internal-ui/components/ai-elements/environment-variablesProduction
ExpandableChat
Docked chat panel with header, body, footer, and open toggle.
@general-design-company/internal-ui/components/ai-elements/expandable-chatAsk about any component.
FileTree
Expandable file browser with selection, icons, and row actions.
@general-design-company/internal-ui/components/ai-elements/file-treeImage
Generated-image renderer for model output parts.
@general-design-company/internal-ui/components/ai-elements/imageInlineCitation
Footnote-style citation with hover card of sources and quotes.
@general-design-company/internal-ui/components/ai-elements/inline-citationThe kit ships every primitive with a specimen[1]example.com , verified live.
JSXPreview
Live JSX preview with error boundary for pasted snippets.
@general-design-company/internal-ui/components/ai-elements/jsx-previewLanguageIcon
Per-language file icon with custom-override support.
@general-design-company/internal-ui/components/ai-elements/language-iconMarkdown
GFM + math + Shiki code rendering, with opt-in word arrival animation for streams.
@general-design-company/internal-ui/components/ai-elements/markdownHello
Bold move. code too.
- one
- two
Message
Chat message with content, actions, branch navigation, and toolbar.
@general-design-company/internal-ui/components/ai-elements/messageMicSelector
Microphone picker backed by live audio devices.
@general-design-company/internal-ui/components/ai-elements/mic-selectorModelSelector
Dialog-based model picker with search, groups, and shortcuts.
@general-design-company/internal-ui/components/ai-elements/model-selectorNode
Card-based canvas node with target/source handles, header, content, and footer.
@general-design-company/internal-ui/components/ai-elements/nodeOpenInChat
Dropdown that deep-links the current query into ChatGPT, Claude, and friends.
@general-design-company/internal-ui/components/ai-elements/open-in-chatPanel
Positioned overlay slot inside the canvas.
@general-design-company/internal-ui/components/ai-elements/panelPersona
Rive-driven agent avatar with idle/listening/thinking/speaking states.
@general-design-company/internal-ui/components/ai-elements/personaPlan
Step plan card with header, streaming content, and footer actions.
@general-design-company/internal-ui/components/ai-elements/planPromptInput
Full composer: provider-optional state, attachments, tools, tabs, and submit.
@general-design-company/internal-ui/components/ai-elements/prompt-inputQueue
Queued-turn list with collapsible sections, indicators, and attachments.
@general-design-company/internal-ui/components/ai-elements/queueReasoning
Streaming thought block with duration, trigger, and collapsible content.
@general-design-company/internal-ui/components/ai-elements/reasoningSandbox
Collapsible tool sandbox with tabbed file/content views.
@general-design-company/internal-ui/components/ai-elements/sandboxSchemaDisplay
API endpoint reference: method, path, parameters, request, and response.
@general-design-company/internal-ui/components/ai-elements/schema-displayList every specimen.
Shimmer
Text shimmer for streaming placeholders. Wraps any inline element.
@general-design-company/internal-ui/components/ai-elements/shimmerGenerating specimens…
One more lineSnippet
Copyable code snippet with text, input, and copy button slots.
@general-design-company/internal-ui/components/ai-elements/snippetSources
Cited-sources collapsible with trigger, content, and source links.
@general-design-company/internal-ui/components/ai-elements/sourcesSpeechInput
Voice input with speech-recognition and recorder fallbacks.
@general-design-company/internal-ui/components/ai-elements/speech-inputStackTrace
Error trace viewer with typed message, copy, expand, and frames.
@general-design-company/internal-ui/components/ai-elements/stack-traceSuggestion
Horizontal suggestion chips that report back the chosen string.
@general-design-company/internal-ui/components/ai-elements/suggestionTask
Agentic task row with trigger, file references, and item breakdown.
@general-design-company/internal-ui/components/ai-elements/taskPromote orphans into the kit
Terminal
Terminal output view with header, status, actions, and autoscroll.
@general-design-company/internal-ui/components/ai-elements/terminalTestResults
Test run report: suites, durations, statuses, and error stacks.
@general-design-company/internal-ui/components/ai-elements/test-resultsTool
Tool-call card with header, JSON input, and rendered output.
@general-design-company/internal-ui/components/ai-elements/toolTranscription
Time-coded transcript with seekable segments.
@general-design-company/internal-ui/components/ai-elements/transcriptionVoiceSelector
Dialog-based voice picker with preview, attributes, and search.
@general-design-company/internal-ui/components/ai-elements/voice-selectorWebPreview
Browser-chrome preview with navigation, URL bar, body, and console.
@general-design-company/internal-ui/components/ai-elements/web-preview