Re:Lit: Simple. Fast. Web Components
by psygn89 on Thursday July 20, 2023 @05:34PM
(#36807062)
Agreed. I get excited to see "headless components" until I read the fine print that it's locked into framework x (usually React). I wish there was a robust headless AND framework-agnostic component library (preferably relying on Lit or Stencil).
[ Parent
| on HN ]
Think thing is that Ionic have proven this can work with the massively underrated Ionic Framework (built with Stencil, which they also built). I just wish they expanded a little further into desktop UI components and provided an no/low styled variant - I dislike Material as a base style, it's too opinionated.
Re:Lit: Simple. Fast. Web Components
by commanderkeen08 on Thursday July 20, 2023 @05:44PM
(#36807159)
Nobody wants Shadow DOM though. Using ::part is always clunky and we’re all lying to ourselves when we say “oh no that’s the feature”.
The whole shadcn/tailwind philosophy of having you own your components is the future.
You don't need to use Shadow DOM though?
Re:Lit: Simple. Fast. Web Components
by jakelazaroff on Thursday July 20, 2023 @05:55PM
(#36807265)
Wait, but that is the feature. My issue with Shadow DOM is that "base" styles (like fonts and colors applied to tag selectors) don't come through, not that I can't override any given style from outside.
I'm not really sure what you mean by "own your own components"?