Getting started
Add tactile, agent-operable UI SDK components to your React or Next.js app in minutes.
Set up with a coding agent
Paste this into your agent while it has your app open:
Read and follow https://ui.devvarena.com/skills/devvarena-ui/SKILL.md.
Set up Devvarena UI in this app, install the seven starter components,
and save the skill and project guidance so future UI work follows it.
Preserve my existing theme and customized components. For future component
work, review all relevant examples before looking up additional UI SDK APIs.The starter set includes Button, Select, Input, Textarea, Checkbox, Dialog, and Badge. You can also read the skill directly.
Prerequisites
- React (latest, 19+) or Next.js (latest App Router)
- Tailwind CSS v4 with
tw-animate-css - shadcn/ui theme tokens (
--background,--foreground,--primary,--border,--input,--ring, etc.) — if you already ranshadcn init, you are ready to go
In your global CSS, declare @layer ui-sdk; before @import "tailwindcss"; and import tw-animate-css:
@layer ui-sdk;
@import "tailwindcss";
@import "tw-animate-css";Built for humans and AI agents
- Human-grade UX: Keyboard navigation, focus management, RTL support, tactile micro-interactions (sliding highlights, value transitions), and adaptive mobile bottom sheets on touch devices.
- Agent-operable by default: Every component is built on
@ui-sdk/reactand@ui-sdk/core, so it automatically exposes structured state and actions tocreateAgent()(snapshot,query,act) and WebMCP (registerTools). - Live Agent Console in docs: Click Agent on any component preview to inspect its live
snapshot()JSON and runagent.act()steps directly against the preview. - Zero lock-in: Components and hooks are copied directly into your project and work with your existing shadcn/ui theme.
Add your first component
Install any component using the shadcn CLI (or copy it from the component's Install tab):
bunx shadcn@latest add https://ui.devvarena.com/api/r/buttonImport and render it:
import { Button } from '@/components/library/button';
export function Example() {
return <Button variant="primary">Get started</Button>;
}Connect an AI agent (optional, 2 lines)
Create one client-side agent bridge before your app renders and (optionally) register it with WebMCP:
import { createAgent, registerTools } from '@ui-sdk/react/agent';
export const agent = createAgent();
// Expose snapshot, query, and act to WebMCP-capable browsers
registerTools(agent, { allow: () => true });Your in-app AI copilot, WebMCP browser assistant, or Playwright test can now inspect and drive mounted components directly through their real state:
agent.snapshot();
await agent.query({ within: 'Design tool', text: 'Canvas' });
await agent.act({ steps: [{ ref: 'Design tool', action: 'setValue', args: ['canvas'] }] });Local development (this repository)
Requires Node.js 22+ and Bun 1.3.3+:
bun install
bun run devOpen localhost:3000 or go directly to /docs.
Scaffolding & checks
bun run component:add my-component # Scaffold component, example, and MDX docs
bun run registry:sync:deps # Sync registry.json dependencies
bun run registry:check # Validate registry
bun run types:check # Type-check with Next.js + tsc
bun run test # Run tests