How I build a button component

from blog Piccalilli - Everything, | ↗ original
A button is arguably the most likely component to find itself in your codebase so I’m going to show you how I approach building one. The hope is it demystifies the humble button and encourages folks who reach for a and a JavaScript handler to use semantic elements. What we’re building We’ve got a pretty standard button with three variants, a...