Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Review: HTML with Superpowers

Code

custom-alert::part(button) {
  background: pink;
}
  • Every component has a life cycle

  • (Those are all libraries though, which I'm not as big a fan of because it puts your code on someone else's foundation)

  • I'm assuming it saves you some significant effort to use one of the libraries, but I'm unclear how much

  • There's a `::slotted(*)`css` selector inside the Lit library. Not sure if that's for web components in general or Lit specifically.

  • Make sure to do lots of testing if you're using form controls. There are gotchas hiding in there.

  • ElementInternals is helping with the form stuff along with formdata

  • Possibility that if we get good custom elements they eventually become native elements

Links

Getting some Web Component knowledge from Dave Rupert