# AI Elements

[BASE product page](<https://base.akulich.dev/en/library/ai-elements/>) · [Resource](<https://github.com/vercel/ai-elements>)

ID: ai\-elements · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

React AI interface components built on shadcn/ui: they help visualize messages, reasoning, and other AI application states\.

## Type

UI library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/ai-elements/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/ai-elements/#resource-access>)

Code and local use under Apache\-2\.0\.

## [Paid features and costs](<https://base.akulich.dev/en/library/ai-elements/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/ai-elements/#resource-access>)

Code and local use under Apache\-2\.0\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/ai-elements/#resource-tasks>)

- Build an AI conversation interface
- Connect them to message streams and generation states from your own backend

## Category IDs

- frontend
- design

## Subcategory IDs

- frontend\.components
- design\.systems

## Tags

- AI Elements
- UI
- Development

## Also known as

- vercel/ai\-elements
- ai\-elements
- vercel\-ai\-elements
- ai\-component\-library
- shadcn\-ui\-ai

## [Selection purpose](<https://base.akulich.dev/en/library/ai-elements/#resource-selection>)

Build an AI conversation interface

## [Choose this when](<https://base.akulich.dev/en/library/ai-elements/#resource-selection>)

- Build an AI conversation interface
- Connect them to message streams and generation states from your own backend

## [Requirements](<https://base.akulich.dev/en/library/ai-elements/#resource-selection>)

- A prepared Next\.js/React project with AI SDK and shadcn/ui; Tailwind configured with CSS variables\.

## [Limitations](<https://base.akulich.dev/en/library/ai-elements/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: Apache\-2\.0 for the code; third\-party components retain their own terms\.

## [Questions before use](<https://base.akulich.dev/en/library/ai-elements/#resource-faq>)

### What can you use for free in AI Elements?

Code and local use under Apache\-2\.0\.

### What additional costs might arise with AI Elements?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for AI Elements?

Apache\-2\.0 for the code; third\-party components retain their own terms\.

### How do you get started with AI Elements?

Choose components for messages, input, and model response display\. Connect them to message streams and generation states from your own backend\. Configure styles and check empty, loading, and error states\.

### Does AI Elements itself provide a model and its responses?

These interface components are added to your code and work with AI SDK\. Connecting a model and paying for inference are separate application concerns\. The README recommends AI Gateway but does not declare it the only mandatory provider\.

## Sources for the selection guide

- [https://github\.com/vercel/ai\-elements](<https://github.com/vercel/ai-elements>)
- [https://raw\.githubusercontent\.com/vercel/ai\-elements/HEAD/README\.md](<https://raw.githubusercontent.com/vercel/ai-elements/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/vercel/ai\-elements/HEAD/LICENSE](<https://raw.githubusercontent.com/vercel/ai-elements/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/ai-elements/#resource-scenario>)

Build an AI conversation interface\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- The component's design, states, and data\.
- A compatible framework and the project's styles\.

## Steps

1. Choose components for messages, input, and model response display\.
2. Connect them to message streams and generation states from your own backend\.
3. Configure styles and check empty, loading, and error states\.

## Check your result

- The keyboard, focus indicators, and a screen reader let users complete the action\.
- The component works on a narrow screen and with long data values\.

## [License](<https://base.akulich.dev/en/library/ai-elements/#resource-license>)

Apache\-2\.0 for the code; third\-party components retain their own terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## [Sources](<https://base.akulich.dev/en/library/ai-elements/#resource-sources>)

- [Official source](<https://github.com/vercel/ai-elements>)
- [Official source](<https://raw.githubusercontent.com/vercel/ai-elements/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/vercel/ai-elements/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
