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)→

Original post →

More from coding & agent

coding & agent channel →