UI SDK's official recipe: a copy-paste prompt to make Claude build with web components
shadcn · x · 2026-11-28
The linked docs provide a copyable prompt that makes Claude artifacts consistently use @ui-sdk/web: fetch the latest version via jsDelivr's API, read the single docs/components.md listing all component composition/attributes/events, load components from a version-pinned CDN script, publish web.css as the artifact's own file (external stylesheets are blocked; inline it for single-file artifacts), and style with --ui- tokens and data-slot selectors.
Related event: Official Guide Shows How to Make Claude Use UI Component Library(2 posts)→
More from coding & agent
- Musk on Grok Bots: give each bot a specialized role, then let a manager bot coordinate — elonmusk · 2026-11-28
- STITCH++ debuts: agent-powered library fuzzing across languages to uncover bugs — mboehme_ · 2026-11-28
- Using full UI SDK component libraries inside Claude Artifacts with a few CLAUDE.md lines — shadcn · 2026-11-28
- User asks Google Antigravity for a configurable compaction threshold — mariofilhoml · 2026-11-28
- Agentic LLMs pushed my Rust code to near hardware limits — minimaxir · 2026-11-28
- What do you do while your coding agents work? A dev's field notes on parallel workflows — Apprehensive_Floor12 · 2026-11-28