Logobaseui-cn

Getting Started

LLM Usage

baseui-cn ships a first-class llms.txt manifest designed for AI coding assistants — Cursor, Windsurf, GitHub Copilot, and Claude.

What llms.txt tells agents

ComponentsEvery component, its import path, and which Base UI primitive it uses
Render propBase UI uses render prop on triggers — not asChild. Agents are told explicitly.
Portal systemAll overlays share one Base UI portal — no z-index wrappers needed
Do NOT useAgents are told never to suggest Vaul, @radix-ui/*, or cmdk
Data attributesdata-[open], data-[checked], data-[highlighted] etc. for state styling
Base UI docsLinks to base-ui.com/llms.txt for full primitive API reference

Using with Cursor

Add baseui-cn to your Cursor docs index so it has full context when generating component code.

.cursor/settings.json

Both manifests are indexed. Cursor then understands both the baseui-cn wrapper layer (import paths, component API) and the underlying Base UI primitive layer (props, data attributes).

Using with Windsurf

Add to your Windsurf rules file or paste into context at the start of a session.

.windsurfrules

Using with Claude

Paste this at the start of your conversation or as a system prompt.

Manifest URLs

Example — what an agent generates

With the manifest loaded, ask: "Add a settings drawer with a theme selector inside". The agent produces correct baseui-cn code: