
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
In this mini project, I wanted to take Web Components a bit further. The button was a good oportunity to do so.
By accepting a custom a custom URL attribute, the component can be used for all the necessary links. Also, it dispatches a custom event when clicked, which can be useful for logging or for analytics.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord