Back to Skills

ai-elements

Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.

1,950stars229forksUpdated 4/24/2026

Security Assessment

Medium Risk(65/100)

Detected risks:

Remote Code Execution([references/stack-trace.md] eval()
Sensitive File Access([references/speech-input.md] .env)
Security Score65/100

About ai-elements

The ai-elements skill provides a robust framework for developers looking to create AI chat interfaces efficiently. By leveraging pre-built components such as conversations, messages, and tool displays, this skill addresses the common challenges faced when building chatbots or AI assistant UIs. It simplifies the development process, allowing users to focus on crafting engaging interactions rather than getting bogged down in the intricacies of UI design and implementation.

FAQ

How do I install AI Elements?

You can install AI Elements using the dedicated CLI command or through the standard shadcn/ui CLI. Ensure to run the commands using your project's package runner.

What are the prerequisites for using AI Elements?

You need Node.js version 18 or later, a Next.js project with the AI SDK installed, and shadcn/ui installed in your project.

Can I use AI Elements components in any React application?

Yes, once installed, you can import and use AI Elements components in your application just like any other React component.

Is there any cost associated with using AI Gateway?

AI Gateway provides $5 in usage per month for experimentation, but you will need to obtain an API key.

Where are the AI Elements components stored in my project?

By default, AI Elements components are added to the '@/components/ai-elements/' directory, or the folder configured in your shadcn components settings.

All Files

129 files
SKILL.md7.1 KB
View
references/agent.md4.1 KB
View
references/chain-of-thought.md3.3 KB
View
references/checkpoint.md5.5 KB
View
references/code-block.md5.4 KB
View
references/conversation.md7.4 KB
View
references/artifact.md2.9 KB
View
references/commit.md5.8 KB
View
references/environment-variables.md3.7 KB
View
references/model-selector.md4.3 KB
View
references/prompt-input.md19.7 KB
View
references/speech-input.md6.5 KB
View
references/toolbar.md1.0 KB
View
scripts/attachments-list.tsx2.2 KB
View
scripts/code-block.tsx2.9 KB
View
scripts/conversation.tsx4.1 KB
View
references/attachments.md5.6 KB
View
references/audio-player.md5.2 KB
View
references/canvas.md1.1 KB
View
references/confirmation.md8.6 KB
View
references/connection.md1.1 KB
View
references/context.md5.6 KB
View
references/file-tree.md2.0 KB
View
references/image.md4.0 KB
View
references/inline-citation.md10.8 KB
View
scripts/inline-citation.tsx3.2 KB
View
scripts/model-selector.tsx8.5 KB
View
scripts/persona-glint.tsx2.5 KB
View
scripts/persona-obsidian.tsx2.5 KB
View
scripts/prompt-input-tooltip.tsx1.1 KB
View
references/controls.md0.9 KB
View
references/jsx-preview.md3.2 KB
View
references/panel.md1.0 KB
View
references/shimmer.md1.6 KB
View
references/terminal.md3.1 KB
View
scripts/agent.tsx1.6 KB
View
scripts/chain-of-thought.tsx138.6 KB
View
scripts/confirmation-request.tsx1.7 KB
View
scripts/file-tree-selection.tsx0.6 KB
View
references/edge.md2.1 KB
View
references/mic-selector.md7.7 KB
View
references/plan.md3.2 KB
View
references/sources.md6.2 KB
View
references/tool.md8.5 KB
View
scripts/attachments-inline.tsx3.5 KB
View
scripts/code-block-dark.tsx1.0 KB
View
scripts/context.tsx1.0 KB
View
scripts/image.tsx136.5 KB
View
scripts/persona-command.tsx2.5 KB
View
scripts/prompt-input-cursor.tsx15.1 KB
View
scripts/schema-display-basic.tsx0.2 KB
View
scripts/shimmer.tsx0.4 KB
View
scripts/stack-trace-no-internal.tsx1.2 KB
View
scripts/terminal.tsx2.3 KB
View
scripts/tool-output-available.tsx1.7 KB
View
references/message.md9.4 KB
View
references/persona.md5.4 KB
View
references/snippet.md2.2 KB
View
references/test-results.md5.0 KB
View
scripts/artifact.tsx2.9 KB
View
scripts/checkpoint.tsx2.8 KB
View
scripts/confirmation.tsx1.7 KB
View
scripts/file-tree.tsx1.5 KB
View
scripts/package-info.tsx1.3 KB
View
scripts/plan.tsx1.9 KB
View
scripts/sandbox.tsx5.4 KB
View
scripts/shimmer-elements.tsx1.1 KB
View
scripts/stack-trace-collapsed.tsx1.1 KB
View
scripts/terminal-clear.tsx0.5 KB
View
scripts/terminal-streaming.tsx1.0 KB
View
scripts/tool-input-streaming.tsx0.7 KB
View
references/node.md2.8 KB
View
references/queue.md5.4 KB
View
references/stack-trace.md7.9 KB
View
references/transcription.md4.9 KB
View
scripts/attachments.tsx2.0 KB
View
scripts/commit.tsx2.1 KB
View
scripts/environment-variables.tsx1.7 KB
View
scripts/message.tsx10.0 KB
View
scripts/persona-halo.tsx2.5 KB
View
scripts/prompt-input.tsx7.4 KB
View
scripts/schema-display-nested.tsx0.5 KB
View
scripts/snippet.tsx0.6 KB
View
scripts/suggestion-input.tsx4.4 KB
View
scripts/test-results-errors.tsx1.3 KB
View
scripts/tool.tsx6.7 KB
View
references/open-in-chat.md2.7 KB
View
references/reasoning.md7.8 KB
View
references/suggestion.md3.6 KB
View
references/voice-selector.md10.3 KB
View
scripts/audio-player-remote.tsx1.0 KB
View
scripts/confirmation-accepted.tsx1.2 KB
View
scripts/file-tree-basic.tsx0.4 KB
View
scripts/jsx-preview.tsx3.2 KB
View
scripts/mic-selector.tsx1.2 KB
View
scripts/persona-mana.tsx2.5 KB
View
scripts/queue-prompt-input.tsx10.5 KB
View
scripts/schema-display-params.tsx0.4 KB
View
scripts/sources-custom.tsx1.0 KB
View
scripts/suggestion.tsx0.8 KB
View
scripts/test-results-suites.tsx0.9 KB
View
scripts/transcription.tsx4.9 KB
View
references/package-info.md3.2 KB
View
references/sandbox.md4.3 KB
View
references/schema-display.md2.5 KB
View
references/task.md6.7 KB
View
references/web-preview.md6.1 KB
View
scripts/audio-player.tsx1.8 KB
View
scripts/confirmation-rejected.tsx1.1 KB
View
scripts/file-tree-expanded.tsx0.6 KB
View
scripts/open-in-chat.tsx0.7 KB
View
scripts/persona-opal.tsx2.5 KB
View
scripts/reasoning.tsx2.2 KB
View
scripts/shimmer-duration.tsx0.9 KB
View
scripts/speech-input.tsx2.3 KB
View
scripts/terminal-basic.tsx0.2 KB
View
scripts/tool-input-available.tsx0.7 KB
View
scripts/web-preview.tsx2.8 KB
View
scripts/queue.tsx8.0 KB
View
scripts/schema-display.tsx2.7 KB
View
scripts/sources.tsx0.7 KB
View
scripts/task.tsx1.5 KB
View
scripts/test-results.tsx2.7 KB
View
scripts/voice-selector.tsx7.1 KB
View
scripts/schema-display-body.tsx0.5 KB
View
scripts/snippet-plain.tsx0.4 KB
View
scripts/stack-trace.tsx1.9 KB
View
scripts/test-results-basic.tsx0.5 KB
View
scripts/tool-output-error.tsx1.1 KB
View

Install ai-elements

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill