ai-elements
Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more.
Skill by full-stack-skills
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/full-stack-skills-ai-elements
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 17
aiethics.org· found in codeapi.openai.com· found in codecodeload.github.com· found in install commanddeeplearninghub.com· found in codedocs.aws.amazon.com· found in codedocs.github.com· found in codedribbble.com· found in codeejiidnob33g9ap1r.public.blob.vercel-storage.com· found in codegithub.com· found in codehealthai.com· found in codeimages.unsplash.com· found in codeinstagram.com· found in codemlnews.org· found in codenlubenchmarks.com· found in codepreview-v0me-kzml7zc6fkcvbyhzrf47.vusercontent.net· found in codereact.dev· found in codestripe.com· found in code
Files it touches
~/.claude/skills/ai-elements
What's inside
- Skill name
ai-elements- Description
- 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.
- License
- Apache-2.0
- Instructions
- 157 lines in SKILL.md · view on GitHub
Files (130)
- SKILL.md
- openai.yaml · agents/
- agent.md · references/
- artifact.md · references/
- attachments.md · references/
- audio-player.md · references/
- canvas.md · references/
- chain-of-thought.md · references/
- checkpoint.md · references/
- code-block.md · references/
- commit.md · references/
- confirmation.md · references/
- connection.md · references/
- context.md · references/
- controls.md · references/
- conversation.md · references/
- edge.md · references/
- environment-variables.md · references/
- file-tree.md · references/
- image.md · references/
- inline-citation.md · references/
- jsx-preview.md · references/
- message.md · references/
- mic-selector.md · references/
- model-selector.md · references/
- node.md · references/
- open-in-chat.md · references/
- package-info.md · references/
- panel.md · references/
- persona.md · references/
- plan.md · references/
- prompt-input.md · references/
- queue.md · references/
- reasoning.md · references/
- sandbox.md · references/
- schema-display.md · references/
- shimmer.md · references/
- snippet.md · references/
- sources.md · references/
- speech-input.md · references/
- stack-trace.md · references/
- suggestion.md · references/
- task.md · references/
- terminal.md · references/
- test-results.md · references/
- tool.md · references/
- toolbar.md · references/
- transcription.md · references/
- voice-selector.md · references/
- web-preview.md · references/
- agent.tsx · scripts/
- artifact.tsx · scripts/
- attachments-inline.tsx · scripts/
- attachments-list.tsx · scripts/
- attachments.tsx · scripts/
- audio-player-remote.tsx · scripts/
- audio-player.tsx · scripts/
- chain-of-thought.tsx · scripts/
- checkpoint.tsx · scripts/
- code-block-dark.tsx · scripts/
- …and 70 more
SKILL.md (first lines)
# AI Elements
[AI Elements](https://www.npmjs.com/package/ai-elements) is a component library and custom registry built on top of [shadcn/ui](https://ui.shadcn.com/) to help you build AI-native applications faster. It provides pre-built components like conversations, messages and more.
Installing AI Elements is straightforward and can be done in a couple of ways. You can use the dedicated CLI command for the fastest setup, or integrate via the standard shadcn/ui CLI if you've already adopted shadcn's workflow.
> **IMPORTANT:** Run all CLI commands using the project's package runner: `npx ai-elements@latest`, `pnpm dlx ai-elements@latest`, or `bunx --bun ai-elements@latest` — based on the project's `packageManager`. Examples below use `npx ai-elements@latest` but substitute the correct runner for the project.
## Prerequisites
Before installing AI Elements, make sure your environment meets the following requirements:
- [Node.js](https://nodejs.org/en/download/), version 18 or later
- A [Next.js](https://nextjs.org/) project with the [AI SDK](https://ai-sdk.dev/) installed.
- [shadcn/ui](https://ui.shadcn.com/) installed in your project. If you don't have it installed, running any install command will automatically install it for you.
- We also highly recommend using the [AI Gateway](https://vercel.com/docs/ai-gateway) and adding `AI_GATEWAY_API_KEY` to your `env.local` so you don't have to use an API key from every provider. AI Gateway also gives $5 in usage per month so you can experiment with models. You can obtain an API key [here](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys&title=Get%20your%20AI%20Gateway%20key).
## Installing Components
You can install AI Elements components using either the AI Elements CLI or the shadcn/ui CLI. Both achieve the same result: adding the selected component’s code and any needed dependencies to your project.
The CLI will download the component’s code and integrate it into your project’s directory (usually under your components folder). By default, AI Elements components are added to the `@/components/ai-elements/` directory (or whatever folder you’ve configured in your shadcn components settings).
After running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.
## Usage
Once an AI Elements component is installed, you can import it and use it in your application like any other React component. The components are added as part of your codebase (not hidden in a library), so the usage feels very natural.
## Example
After installing AI Elements components, you can use them in your application like any other React component. For example:
```tsx title="conversation.tsx"
"use client";
import {
Message,
MessageContent,
MessageResponse,
} from "@/components/ai-elements/message";
import { useChat } from "@ai-sdk/react";
const Example = () => {
const { messages } = useChat();
return (
<>
{messages.map(({ role, parts }, index) => (
<Message from={role} key={index}>
<MessageContent>
{parts.map((part, i) => {
switch (part.type) {
case "text":
return (
<MessageResponse key={`${role}-${i}`}>
{part.text}
</MessageResponse>
);
}
})}
</MessageContent>
</Message>
))}
</>
);
};
export default Example;
```
In the example above, we import the `Message` component from our AI Elements directory and include it in our JSX. Then, we compose the component with the `MessageContent` and `MessageResponse` subcomponents. You can style or configure the component just as you would if you wrote it yourself – since the code lives in your project, you can even open the component file to see how it works or make custom modifications.
## Extensibility
All AI Elements components take as many primitive attributes as possible. For example, the `Message` component extends `HTMLAttributes<HTMLDivElement>`, so you can pass any props that a `div` supports. This makes it easy to extend the component with your own styles or functionality.
## Customization
After installation, no additional setup is needed. The component’s styles (Tailwind CSS classes) and scripts are already integrated. You can start interacting with the component in your app immediately.
For example, if you'd like to remove the rounding on `Message`, you can go to `components/ai-elements/message.tsx` and remove `rounded-lg` as follows:
```tsx title="components/ai-elements/message.tsx" highlight="8"
export const MessageContent = ({
children,
className,
...props
}: MessageContentProps) => (
<div
className={cn(
"flex flex-col gap-2 text-sm text-foreground",
"group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4 group-[.is-user]:py-3",
className
)}
{...props}
>
<div className="is-user:dark">{children}</div>
</div>
);
```
## Troubleshooting
### Why are my components not styled?
Make sure your project is configured correctly for shadcn/ui in Tailwind 4 - this means having a `globals.css` file that imports Tailwind and includes the shadcn/ui base styles.
### I ran the AI Elements CLI but nothing was added to my project
Double-check that:
- Your current working directory is the root of your project (where `package.json` lives).
- Your components.json file (if using shadcn-style config) is set up correctly.
- You’re using the latest version of the AI Elements CLI:
```bash title="Terminal"
npx ai-elements@latest
```From full-stack-skills/react-skills, Apache-2.0.
More from full-stack-skills/react-skills
- 0.598score
react
full-stack-skills
Provides comprehensive guidance for React development including components, JSX, props, state, hooks, context, performance optimization, and best practices.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
redux
full-stack-skills
Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
react-hooks
full-stack-skills
Provides comprehensive guidance for React Hooks including useState, useEffect, useContext, useReducer, useMemo, useCallback, custom hooks, and hook patterns.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
react-native
full-stack-skills
Provides comprehensive guidance for React Native development including components, navigation, native modules, platform-specific code, and mobile app…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
react-native-project-creater
full-stack-skills
Provides one-command project creation for React Native including project initialization, configuration, and template generation.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
nextjs
full-stack-skills
Guidance for Next.js using the official docs at nextjs.org/docs.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 3, 2026 (25 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.339score
ai-elements
ManatoYamashita
Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more.
SkillAFreshness: AClaude Code +9 - 0.315score
ai-elements
ibdafna
Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more.
SkillBFreshness: BClaude Code +9
More from full-stack-skills
- 0.604score
spring-boot
full-stack-skills
Provides comprehensive guidance for Spring Boot development including project creation, auto-configuration, dependency injection, web development, data…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
spring-ai-alibaba
full-stack-skills
Provides comprehensive guidance for Spring AI Alibaba including Alibaba Cloud AI services integration, model APIs, and AI application development.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
spring-cloud-alibaba
full-stack-skills
Provides comprehensive guidance for Spring Cloud Alibaba including Nacos, Sentinel, RocketMQ, and Alibaba Cloud integration.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
spring-data-jpa
full-stack-skills
Provides comprehensive guidance for Spring Data JPA including repositories, entity management, query methods, and database operations.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
spring-ai
full-stack-skills
Provides comprehensive guidance for Spring AI including AI model integration, prompt templates, vector stores, and AI applications.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
spring-cloud
full-stack-skills
Provides comprehensive guidance for Spring Cloud microservices including service discovery, configuration management, load balancing, circuit breakers, API…
SkillAFreshness: A★ 3Claude Code +9
Cite this page
ai-elements skill. Agent Mart. https://agentmart.dev/skills/full-stack-skills-ai-elements (last updated 2026-10-24)