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. 🤷♀️
Published at
2024-08-05 09:17:31Event JSON
{
"id": "8a1ba8cab365ea695ab7f74556ab6c4b3d96d1b4f678975cbaba089006c9001b",
"pubkey": "92a7c8d4a6ce1a1dc2b7c51baf1f87ad0bec0e3c5d8a132aa08fea05012582c9",
"created_at": 1722842251,
"kind": 1,
"tags": [
[
"proxy",
"https://lea.lgbt/@lea/112908189814929232",
"web"
],
[
"proxy",
"https://lea.lgbt/users/lea/statuses/112908189814929232",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://lea.lgbt/users/lea/statuses/112908189814929232",
"pink.momostr"
],
[
"-"
]
],
"content": "Unpopular opinion: I don't see any value in having a button web component, no matter whether with a framework or with custom elements.\n\n\u003cbutton\u003e already has all functionality built-in a button would require. The visual appearances, including button variants can be handled via CSS.\n\nA 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. 🤷♀️",
"sig": "35290d2d1a95dbe404257ad852b4a30c602a4b7189c28ab035a3c4716a7cd877f3933bdd62301cfce49c81234be91da0da0b082f79693e6b7ba7035ba6080969"
}