If you're into making web components, I'd recommend trying Stencil.js. If you're already used to JSX, it's easy to write, and it handles types and docs automagically. It also scaffolds unit tests if you're so inclined.

#webcomponents #stenciljs #webdev

Implementing Custom Web Components in Angular with Stencil.js

#Angular #FrontendDevelopment #WebComponents #StencilJs

https://g.omid.dev/oVJBMWJ

Implementing Custom Web Components in Angular with Stencil.js

In modern web development, the ability to create reusable components that work across different frameworks and libraries is crucial. This is where Web Components come into play. Web Components allow developers to create custom, reusable HTML elements with encapsulated functionality and styling. However, building Web Components from scratch can be complex and time-consuming. Enter Stencil.js, a powerful tool that simplifies the creation of Web Components. In this guide, we’ll explore how to create custom Web Components using Stencil.

  • got started with #StencilJS!
    • realizing just how different that world is from what I’m used to
    • the only good nx integration has a ton of weird dependencies & expectations that are big-time yuck, will have to find another way

https://github.com/ch-ui-dev/ch-ui/pull/11

Also: v. important cuddles 🧡
#orangeCat #catsOfMastodon

feat: Elements by thure · Pull Request #11 · ch-ui-dev/ch-ui

This PR: creates a stub elements package, containing the StencilJS project for same adjusts the Storybook setup to use vite-html instead of React

GitHub

I’m streaming! I think.

Today I’m gonna set up some voting-focused #UI stories, give #StencilJs a shot, also set up a set of design tokens that can be used on their own but also satisfy a #Tailwind config.

There will also be music 

Join if you like! I have no idea what I’m doing.

https://discord.gg/XAYhSvZf

Join the ch-ui Discord Server!

Check out the ch-ui community on Discord - hang out with 1 other members and enjoy free voice and text chat.

Discord
Obfuscate Web Component | Nerdpress.org

Typically, when integrating emails into websites, I obfuscate the email address to prevent spam bots from collecting them. For React, there were already components that handled this task; however, without React, I couldn't find a suitable solution. Therefore, I created a web component: obfuscate-wc that now provides an HTML element capable of obfuscating your email

Nerdpress.org | ...dev, tech problems and solutions.

Who's using Lit or StencilJS

or Web Components in general??

#tech #coding #programming #lit #stenciljs #webcomponents #frontend

@jasono @Ryanbigg If we were trying it today I think we’d look at https://lit.dev first. Much as I still like #StencilJS for the reasons @jasono mentioned, #Lit does seem to be winning the crown.
Lit

Simple. Fast. Web Components.

lit.dev

J'ai joué avec les #microfrontends. Je suis partis sur l'option #CustomElements / #WebComponents, plutôt que #WebPack et #ModuleFederation. C'est bien parti, mon objectif est de fédérer dans mon blog tous mes projets persos... là j'ai un blog en #SvelteKit, qui intègre un QR Code #StencilJS, et une app #AngularElements. 🤹‍♀️

L'article est en mode brouillon, je vais l'étoffer mais la démo est live : https://lacourt.dev/2023/01/21

Re-using my sample QR Code StencilJS Web Component

Sample QR Code component usage in a SvelteKit page.

#WebComponents experience  

 Browsers don't have the same baseline styles.
 2 hours figuring out how to avoid #frameworks and #bundlers.
 3 hours of searching framework anyway, only to stumble upon options that either, like #LitElement, have minified bundle without #TS declaration or, like #StencilJS, require building.
  Ending up writing my own nano-framework with adoptedStyleSheets #polyfill.

#TIL #JavaScript #buildless #AreWeThereYet

I'm helping make a design system component library for Healthpartners (http://www.healthpartners.com). it's written using Stencil and hosted in Storybook. Does this seem like a topic people would like to learn more about? I sometimes wonder if I should give a talk somewhere... #stenciljs #storybook #designsystems
HealthPartners – Top-Rated insurance and health care in Minnesota and Wisconsin

Whether you need help with choosing an insurance plan, or you need expert care – we’ve got you covered.