ai-elements

Render streaming markdown, tool calls, and reasoning displays with React components.

2|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/NagyVikt/codex-plugins --skill ai-elements-nagyvikt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-elements
Source: https://github.com/NagyVikt/codex-plugins/tree/main/plugins/vercel/skills/ai-elements
Command: npx skills add https://github.com/NagyVikt/codex-plugins --skill ai-elements-nagyvikt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @ai-sdk/react, @base-ui/react.

What problem does it solve?

This skill solves the challenge of rendering AI-generated content, such as streaming markdown, tool calls, and reasoning steps, which often appear as unformatted raw text when built from scratch.

Core Features & Use Cases

  • Streaming-Aware Rendering: Provides specialized components like MessageResponse that handle incremental markdown updates without flicker or re-parsing overhead.
  • AI-Native UI Primitives: Includes 40+ components for chat interfaces, tool call displays, reasoning panels, and voice/code-specific UI elements.
  • Use Case: When building a chat application with the Vercel AI SDK, use this skill to instantly implement a professional, streaming-capable chat interface that correctly renders tool invocations and markdown formatting.

Quick Start

Use the ai-elements skill to add the message component to your project for rendering streaming AI responses.

Frequently Asked Questions about ai-elements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render streaming markdown in a React chat application without flicker?

Rendering streaming markdown without flicker in a React chat application requires specialized components that handle incremental updates to prevent re-parsing overhead during AI response generation.

What is the best way to display AI tool calls and reasoning steps in a React UI?

Displaying AI tool calls and reasoning steps in a React UI is best achieved using AI-native component libraries that provide specialized panels for rendering tool invocations and reasoning displays.

Can I use these AI UI components with shadcn/ui and the Vercel AI SDK?

These AI UI components support integration with shadcn/ui and require the Vercel AI SDK v6 to ensure proper message part handling and streaming state management within your React application.

Do I need the AI SDK to build chat interfaces with streaming-aware rendering?

You need the AI SDK v6 to build chat interfaces with streaming-aware rendering, as it provides the necessary message part handling and streaming state management for the React components.

What React components are available for building voice agents and coding assistants?

Available React components for building voice agents and coding assistants include over 40 AI-native UI primitives covering chat interfaces, tool call displays, reasoning panels, and voice-specific UI elements.

Why does my AI generated content appear as unformatted raw text in my React app?

AI generated content appears as unformatted raw text when built from scratch because standard React lacks specialized rendering logic for streaming markdown, tool calls, and reasoning steps.