Useful Web Components: Toggle Buttons

from blog The Darth Mall, | ↗ original
One of my favorite uses of Web Components is as a container for HTML elements that helps manage some aspect of state. In this case, we can wrap a couple of elements to create a set of toggle buttons, like you might use for a theme picker on your website. Let me know what you think over on the fediverse: @darth_mall@notacult.social. A group of...