Join Nostr
2024-08-05 07:17:31 UTC

Lea Rosema on Nostr: Unpopular opinion: I don't see any value in having a button web component, no matter ...

Unpopular opinion: I don't see any value in having a button web component, no matter whether with a framework or with custom elements.

<button> already has all functionality built-in a button would require. The visual appearances, including button variants can be handled via CSS.

A button component may make it look more "architectured" (yay, you can omit the class attribute and brand it like MyCompanyButton), but it requires JavaScript to make it work. 🤷‍♀️