The Incredible Overcomplexity of the Shadcn Radio Button
Well, this is horrifying.
Some more food for thought, following on from Shaun’s post about HTML as the foundation of web development:
There is another building block for the web, one that is more important than HTML, CSS and JavaScript combined. It all starts with URLs. Those things uniquely identify some piece of information on the web.
Well, this is horrifying.
Great minds think alike! I have a very similar HTML web component on the front page of The Session called input-autosuggest.
Progressive enhancement is about building something robust, that works everywhere, and then making it better where possible.
You might not need (much) JavaScript for these common interface patterns.
While we all love the power and flexibility JS provides, we should also respect it, and our users, by limiting its use to only what it needs to do.
Yes! Client-side JavaScript should do what only client-side JavaScript can do.
Explore the platform. Challenge yourself to discover what the modern web can do natively. Pure HTML, CSS, and a bit of vanilla JS…
Here’s an HTML web component you can use if you’re participating in the origin trial for the Web Install API.
HTML’s new `command` attribute on the `button` element could be a game-changer.
Some buggy behaviour has been fixed in iOS 18 but now there’s a new bit of weirdness.
Try writing your HTML in HTML, your CSS in CSS, and your JavaScript in JavaScript.
Going back to school in Amsterdam.