What happens to web components when AI agents write the code—and may not choose them at all? Nolan Lawson argues that agentic coding weakens their traditional pitch: reusable components mattered when people wrote code by hand, but agents can generate boilerplate or switch frameworks with little friction. Google’s Modern Web Guidance, he notes, rarely recommends custom elements for new products, instead treating them as a fit for narrower cases such as design systems, embedded widgets, and isolated interfaces.
Lawson still sees a role for web components in micro-frontends and portable, self-contained tools such as his emoji picker. But he argues that their future depends on solving persistent problems in server-side rendering, stylesheet sharing, and accessibility—issues that affect users regardless of who writes the code. The sharper question is whether standards and browser teams can make web components useful enough that agents reach for them without being told.
continue reading onnolanlawson.com
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.