8.0k New

AI Elements

Patterns for agentic interfaces, built from shadcn-svelte components.

Epicenter

Local-first, open source apps

Special Sponsor

AI Elements are patterns for building agentic interfaces. Each one is a composition of shadcn-svelte components that you copy into your project. There is no package to install. The code is yours.

A Chat is a list of Message turns inside a Message Scroller. The steps an agent takes inside a turn, like Reasoning, Tool and Plan, are built on Trace, so every step has the same shape.

The examples use @ai-sdk/svelte. The patterns only read message parts, so they work with any source of messages.

Patterns

Getting Started

Add the components most patterns are built on:

pnpm dlx shadcn-svelte@latest add trace code-block

Then open a pattern above and copy its code into your project. Each page lists any other components it needs.