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 usesRender 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 neededDo NOT useAgents are told never to suggest Vaul, @radix-ui/*, or cmdkData attributesdata-[open], data-[checked], data-[highlighted] etc. for state stylingBase UI docsLinks to base-ui.com/llms.txt for full primitive API referenceUsing 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
baseui-cn manifesthttps://baseui-cn.com/llms.txt
Base UI manifesthttps://base-ui.com/llms.txt
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: