Links on Web Components

  • How we use Web Components at GitHub — Kristján Oddsson talks about how GitHub is using web components. I remember they were very early adopters, and it says here they released a <relative-time> component in 2014! Now they’ve got a


The post Links on Web Components appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

  • How we use Web Components at GitHub — Kristján Oddsson talks about how GitHub is using web components. I remember they were very early adopters, and it says here they released a <relative-time> component in 2014! Now they’ve got a whole bunch of open source components. So easy to use! Awesome! I wanted to poke around their HTML and see them in action, so I View’d Source and used the RegEx (<\w+-[\w|-|]+.*>) (thanks, Andrew) to look for them. Seven on the logged-in homepage, so they ain’t blowin’ smoke.
  • Using web components to encapsulate CSS and resolve design system conflicts — Tyler Williams says the encapsulation (Shadow DOM) of web components meant avoiding styling conflicts with an older CSS system. He also proves that companies that make sites for Git repos love web components.
  • Container Queries in Web Components — Max Böck shares that the :host of a web component can be the @container which is extremely great and is absolutely how all web components should be written.
  • Faster Integration with Web Components — Jason Grigsby does client work and says that web components don’t make integration fast or easy, they make integration fast and easy.
  • FicusJS — I remember being told once that native web components weren’t really meant to be used “raw” but meant to be low-level such that tooling could be built on top of them. We see that in competition amongst renderers, like lit-html vs htm. Then, in layers of tooling on top of that, like Ficus here, that adds a bunch of fancy stuff like state, methods, and events.
  • Shadow DOM and Its Effect on the Unofficial Styling API — Jim Nielsen expands on the idea I poked at on ShopTalk that the DOM is the styling API. It’s self-documenting, in a way. “As an author, you have to spend time and effort thinking about, architecting, and then documenting a styling API for your component. And as a consumer, you have to read, understand, and implement that API.” Yes. That’s why, to me, it feels like a good idea to have an option to “reach into the Shadow DOM from outside CSS” in an unencumbered way.
  • Awesome Standalones — I think Dave’s list here is exactly the kind of thing that gets developers feet wet and thinking about web components as actually useful.

Two years ago, hold true:


The post Links on Web Components appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


Print Share Comment Cite Upload Translate
APA
Chris Coyier | Sciencx (2024-03-29T00:06:04+00:00) » Links on Web Components. Retrieved from https://www.scien.cx/2021/05/26/links-on-web-components/.
MLA
" » Links on Web Components." Chris Coyier | Sciencx - Wednesday May 26, 2021, https://www.scien.cx/2021/05/26/links-on-web-components/
HARVARD
Chris Coyier | Sciencx Wednesday May 26, 2021 » Links on Web Components., viewed 2024-03-29T00:06:04+00:00,<https://www.scien.cx/2021/05/26/links-on-web-components/>
VANCOUVER
Chris Coyier | Sciencx - » Links on Web Components. [Internet]. [Accessed 2024-03-29T00:06:04+00:00]. Available from: https://www.scien.cx/2021/05/26/links-on-web-components/
CHICAGO
" » Links on Web Components." Chris Coyier | Sciencx - Accessed 2024-03-29T00:06:04+00:00. https://www.scien.cx/2021/05/26/links-on-web-components/
IEEE
" » Links on Web Components." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/05/26/links-on-web-components/. [Accessed: 2024-03-29T00:06:04+00:00]
rf:citation
» Links on Web Components | Chris Coyier | Sciencx | https://www.scien.cx/2021/05/26/links-on-web-components/ | 2024-03-29T00:06:04+00:00
https://github.com/addpipe/simple-recorderjs-demo