George
banner
geotrev.bsky.social
George
@geotrev.bsky.social
Web designer/developer. Weirdly obsessed with plastic and cardboard. Has two very loud cats.

I like the front of frontend but the back of frontend is cool sometimes too.

https://geotrev.com
My go to is either goldenrod or rebeccapurple for WIP stuff. I might just add ghostwhite to the list. Dope name.
November 26, 2025 at 10:51 PM
Over the years, I've realized you really need to practice and re-implement patterns often, just like how we're told to practice DSAs. I'm not the strongest developer but I have a design background and geek out when I find better implementations of old patterns.
April 28, 2025 at 9:14 PM
Most recently: building sortable tables. It's been probably... 5+ years? I forgot about fixed table layouts in that time, somehow. Never implemented this in React before (but had done so in other contexts).
April 28, 2025 at 9:14 PM
Live demo: pqkg67.csb.app
pqkg67.csb.app
April 24, 2025 at 2:29 AM
For additional context, I come at this from the point of view of a design systems author, where your shadow DOM is usually either one or two main elements. In other contexts the trade-offs may be worth consideration for a different composability API.
March 30, 2025 at 11:05 PM
Personally, I preferred wrapping the element and passing in additional attrs/props for greater control. Having an open Shadow DOM also helps with configurability. Ultimately, I don't think the trade-offs are such that you gain much of anything by requiring your main element be slotted.
March 30, 2025 at 11:05 PM
... differently. For instance, you lose the ability to easily apply attributes when the element is slotted, instead requiring you to set them later via DOM properties. This becomes moot with some libraries though (such as Lit) which pass your component through a renderer, which helps.
March 30, 2025 at 11:03 PM
In my experience at ServiceNow (and authoring open source components), I would wrap the core element completely. Only things like content, labels, icons, etc. would be exposed as slots. I think there's value in exposing the element itself, the only challenge is you need to juggle the attributes...
March 30, 2025 at 11:03 PM
December 1, 2024 at 11:54 PM
Mostly excellent. Shoot me a DM (I can't send one to you), then I can send you my cell.

I also bought a house. we're both stuck here for the foreseeable future it seems!
November 18, 2024 at 2:39 AM