Today, I am going to take you through the journey of creating an HTML component that mimics a momentary pushbutton component that is commonly used with Arduino and in electronic projects. We will use technologies such as SVG, Web Components and lit-element, and learn how to make the button accessible through some JavaScript-CSS trickery.
Let’s start!
From Arduino To HTML: The Need For A Pushbutton Component Before we embark on the journey, let’s explore what we are going to create, and more importantly, why.
https://www.smashingmagazine.com/2020/01/recreating-arduino-pushbutton-svg/