Skip to Content
Devvarena UI

Introduction

React components for shadcn/ui projects, with interactive previews and optional AI agent controls.

This is a library of React components you can copy into your app and make your own. The components fit into an existing shadcn/ui theme and use Tailwind CSS v4 and tw-animate-css for styling and motion.

What you get

  • A consistent feel. Controls share a size scale and use small details like sliding highlights and smooth value changes. Where supported, components adapt to right-to-left layouts and reduced motion, and menus can open as bottom sheets on touch devices.
  • A shared way to interact. Components built with Vercel’s UI SDK (@ui-sdk/react and @ui-sdk/core) can expose their state, choices, and actions. People use the controls as usual. Tests and AI agents can use the SDK to read and operate those same controls without simulating clicks.
  • Live examples and practical docs. Open Agent in a preview toolbar to see what the SDK detects. The Agent Console lets you inspect the snapshot as JSON and try actions on the live example. Component pages also include API tables, interaction states, and implementation notes.
  • Source you can customize. The shadcn CLI copies the components into your React or Next.js app. They use your existing theme variables without requiring a separate theme provider.

Connect an AI agent (optional)

Run this in client code to create the agent connection. The second call makes it available to browsers that support WebMCP.

import { createAgent, registerTools } from '@ui-sdk/react/agent';

export const agent = createAgent();
registerTools(agent, { allow: (step) => !step.confirm });

Use snapshot() to see available controls, query() to find choices, and act() to run an action. The example leaves actions marked for confirmation to the person using the app.

Explore the docs

Frequently asked questions