Blog
The hard parts, written down
Notes from building HextaUI: shadcn/ui and Base UI, the states most interfaces skip, AI chat screens, checkout and store admin UI, and registries for coding agents.
· 10 min read
Make your React app operable by AI agents with UI SDK and WebMCP
Let AI agents read and use your React UI with Vercel's UI SDK: createAgent, snapshot, act, allow, source agent, definePrimitive and WebMCP registerTools.
- AI
- React
- UI SDK
- WebMCP
· 9 min read
UI SDK vs Base UI vs Radix: which headless library for shadcn-style components?
Vercel's UI SDK, Base UI and Radix compared for shadcn-style components: model, frameworks, coverage, styling, animation, beta status, license and agents.
· 9 min read
Styling Vercel's UI SDK with Tailwind: data-slot, state attributes and enter/exit animations
Style Vercel's new UI SDK with Tailwind v4 and shadcn tokens: data-slot, state attributes, CSS variables and enter and exit animations on four components.
· 6 min read
How to build a one-page checkout in React and Next.js that survives declines and changed prices
A checkout form is easy. Declines, 3-D Secure, prices that change before Pay and payments that never answer are not. A one-page checkout in React and Next.js.
· 5 min read
Product variant picker UX in React: sold-out sizes, missing combinations and back-in-stock
Colors and sizes look simple until stock lives on each combination. A React variant picker for sold-out sizes, missing combinations, photos, prices and the URL.
· 6 min read
Shopping cart UX in React: optimistic updates, undo and money in minor units
A React cart that feels instant and stays correct: money in minor units, optimistic quantities with rollback, merged requests, undo and free shipping progress.
· 6 min read
How to build an address form that works in every country, in React
A US address form with a country dropdown is not international. Per-country fields, postal codes, autofill tokens, address search and errors in React.
· 6 min read
Building an e-commerce admin dashboard in Next.js: orders, refunds and inventory
The hard parts of a Next.js store admin: two order statuses, partial bulk failures, refund math that adds up to the cent, inventory adjustments and discounts.
· 5 min read
shadcn/ui switched to Base UI. Here is what actually changes in your code
shadcn/ui now defaults to Base UI instead of Radix. Every API change you will hit, the -b radix escape hatch and a migration order that does not hurt.
· 5 min read
The states shadcn/ui leaves to you: loading, success, error, empty and reduced motion
shadcn/ui gives you a clean button, not a loading button. The hard UI states every shadcn project hand-rolls, with the timings that make them feel right.
· 6 min read
How to build an AI chat UI with shadcn/ui and the Vercel AI SDK that survives real users
A streaming AI chat is easy to demo and hard to ship. The states a shadcn/ui and AI SDK chat has to handle, from stop and retry to tool approvals and CJK input.
· 5 min read
Vercel's AI Elements is being deprecated. Here are the alternatives for shadcn/ui AI chat UI
Vercel's AI Elements is deprecated at the end of November 2026. What replaces it, what to do with code you copied, and five shadcn/ui AI chat options compared.
· 5 min read
How to build a shadcn/ui registry that Claude Code and Cursor can actually use
A shadcn registry is half the job in 2026. Namespaces, Markdown docs at .md URLs, llms.txt, an MCP server and private registries, so AI agents install it right.