Weβre currently using Mustache, and we have a PHP compiler for it on the server and a JS compiler on the client. You only really need a string of HTML, and you can configure your JS bundler to create a loader for your template files.
08.07.2025 19:44 β π 1 π 0 π¬ 1 π 0
Is the public api React/Svelte components, each which render a web component with declarative shadow DOM?
17.06.2025 17:57 β π 0 π 0 π¬ 0 π 0
JSX Types Generator
Generate JSX types for custom elements / web components
π Excited about @wc-toolkit's JSX Types Generator!
Generate complete #TypeScript type definitions for your #WebComponents in JSX frameworks like @react.dev 19+, @preactjs.com, and @stenciljs.com.
β¨ Autocomplete
π Inline documentation
π‘οΈ Type validation
π Event typing
wc-toolkit.com/integrations...
03.06.2025 10:54 β π 16 π 3 π¬ 1 π 0
Was that ever a requirement/consideration for the previous React library?
02.06.2025 20:14 β π 0 π 0 π¬ 1 π 0
Curious about SSR and if that ever came up as a requirement. Itβs been a critical requirement in my experience in web and e-commerce, so Iβm a bit surprised that itβs all client-side Preact. Though my assumption could be wrong!
01.06.2025 21:47 β π 0 π 0 π¬ 1 π 0
Also not using Lit styles. (We're maintaining our own server integrations for injecting DSD and styles.) Is the async batching part of the prop/attr bookkeeping? What Lit does for that is great, but I'm thinking about whether a different implementation without asynchronicity would be better for us
19.05.2025 17:58 β π 0 π 0 π¬ 0 π 0
Iβve had to create our own version of βupdateCompleteβ and βfirstUpdatedβ since the shadow DOM or light DOM werenβt necessarily available/ready when we expected.
19.05.2025 01:53 β π 0 π 0 π¬ 0 π 0
@justinfagnani.com Iβve been using Litβs base ReactiveElement, without a βrenderβ method, since weβre inserting the shadow template externally, and updating it imperatively. Curious if you think this makes ReactiveElement overkill? We use it for the βupdateβ methods and syncing props & attrs.
19.05.2025 01:52 β π 1 π 0 π¬ 2 π 0
Are your tokens currently published without any kind of build step? Just static files that are published directly?
It does feel a little funny to capture operations on colors, but I feel like itβs pretty common to do so in type-scales or spacing scales.
17.05.2025 20:27 β π 2 π 0 π¬ 2 π 0
Could that darkened color be tokenized as a hex code?
17.05.2025 18:44 β π 0 π 0 π¬ 1 π 0
Interviewer: Can you explain this gap in your resume?
Me, a software engineer: I suspect it's CSS margin collapse. I'd update to use flex and justify-content:space-evenly but I know you recruiters trust Outlook as a renderer.
13.05.2025 01:21 β π 59 π 12 π¬ 0 π 1
Idk, I think you could say the same for React effects
13.05.2025 00:32 β π 1 π 0 π¬ 0 π 0
Should there be a βstrict modeβ for web components that calls connectedCallback twice in DEV mode to catch bugs? π€
12.05.2025 20:01 β π 0 π 0 π¬ 1 π 0
What are some of the most wrong ones?
11.05.2025 23:45 β π 0 π 0 π¬ 1 π 0
Not with Preact, but with Preact as a consumer
07.05.2025 02:45 β π 0 π 0 π¬ 0 π 0
You don't specify the required props for JSX/React, right? If I used `glide-core-dropdown` in a React app, there wouldn't be any TS support for the unique attributes?
25.04.2025 22:57 β π 0 π 0 π¬ 1 π 0
I didn't think too much about this until configuring the types for a web component to be used in React. When I made certain attributes required, I realized that no other elements require HTML attributes, and never provide type errors.
25.04.2025 22:33 β π 2 π 0 π¬ 1 π 0
Do you author web components with "required" attributes? The convention for most HTML elements is that no attributes are required. But in the context of a design system, it would be nice to require configuration for a custom element. Like a variant attribute for a badge or a button.
25.04.2025 22:31 β π 3 π 0 π¬ 3 π 0
There are some downsides. Like CLS once JS runs. And arguably that timestamp isnβt legible to many non-technical users.
Ideally the server could provide a more legible format.
I know itβs meant to be an example of a point, and there are a lot of good cases to use this strategy.
19.04.2025 17:56 β π 0 π 0 π¬ 1 π 0
hello, world
14.04.2025 20:25 β π 166 π 27 π¬ 7 π 4
Say I have a web component (built with Lit) with a property "styleType", and its corresponding attribute is "style-type". Using conventional strategies for adding web component types to JSX, TS will autocomplete "styleType". But the correct attribute would be "style-type".
Has anyone solved this?
10.04.2025 20:55 β π 1 π 0 π¬ 1 π 0
Have you had any problems with misuse? Like custom styles applied to the input or other anything else unexpected?
29.03.2025 18:21 β π 1 π 0 π¬ 2 π 0
Does anyone here really use Signal as a daily, normal messaging app, like with friends and family? I donβt know anyone that uses it, except for some who use it for work in politics.
I feel like I hear about it so much, and Iβve had it for years, but have never once used it.
26.03.2025 20:03 β π 1 π 0 π¬ 0 π 0
How to use Web Components with TypeScript and React
Learn how to use Web Components with TSX TypeScript and React components.
This might help! There are some steps required to let TS know what your elements are and what their events/props are coryrylan.com/blog/how-to-...
18.03.2025 17:43 β π 3 π 0 π¬ 1 π 0
What makes them a drag?
18.03.2025 15:44 β π 1 π 0 π¬ 1 π 0
Would love to hear what the design system looks like! Is the library primarily composed of Lit components? How much do developers just use CSS classes on their own markup?
My team is investigating using web components, but we're very server-driven. So I'm very curious what other folks are doing.
18.03.2025 00:36 β π 1 π 0 π¬ 1 π 0
Just to clarify, today you'd choose to provide an API where a developer had to put add a <input /> as a child of the custom element? ie
<ds-input>
<input />
</ds-input>
Or you'd make the component render its own input in a shadow root?
17.03.2025 22:55 β π 0 π 0 π¬ 1 π 0
Thanks to the great feedback, I started playing around with a custom element providing these public methods to be used for unit testing. I wrote them to be as similar to `@testing-library/user-event` as possible. Instead of
await userEvent.type(input, 'hello');
you write
await input.type('hello')
17.03.2025 16:30 β π 1 π 0 π¬ 0 π 0
The browser for web developers that care about their craft and users. | Try out for free at https://polypane.app | By @kilianvalkhof.com
Welcome to a calmer internet!
#ZenBrowser
π https://github.com/zen-browser
π https://zen-browser.app
β₯οΈ https://ko-fi.com/zen_browser
π¬ https://discord.gg/zen-browser
Web, standards, tooling, sports, video games. https://frehner.me
Working @Shopify
I still like you just the way you are.
Teaching developers @ Cursor, previously @vercel.com
Implicit "It depends" | Open Sourced Shenanigans http://github.com/rschristian | @preactjs.com stuffs
Signal is an end-to-end encrypted messaging app. Privacy isnβt an optional mode, itβs just the way that Signal works. Every message, every call, every time.
Lead Frontend Engineer on Nord Design System at Nordhealth. Lives in Utrecht. Loves cinema, photography, journaling, running, cycling, coffee, HiFi, and gaming. He/him. Be kind β€οΈ
elwinvaneede.com
#DesignSystems #WebComponents #Vue #Nuxt #Accessibility
Front-end/design systems engineer (web components, a11y, CSS, JS; former full-stack/ColdFusion developer), metalhead, geek, father.
Developer. Creator. Cat lover. INTP since 1985.
Javascript developer, web components groupie, design systems, web performance, gamer and a scifi and fantasy author. Father of 4, hence the jokes ;)
https://yonatankra.com
Web developer, family man, unrepentant slacker wannabe in Montreal, late of Hamilton, Ontario.
Older than you'd imagine.
Frontend dev built the design system at McGill University. JS frameworks, Web components, CSS, HTML baybee!
He/him
π» Design System Engineering Manager @ T. Rowe Price
π€ Speaker about systems, strategy, and bits Iβve learned along the way
π§ Web Standards Enthusiast
I design and build things on the internet. I sketch and run when I can.
π joshcrain.io
enjoys flippin' pixels into web products. made my own humansΒ². facial fuzz cultivator. permanently drawn on. sr ux developer, design systems.
california. views are my own. #resist
https://pixelflips.com π€πΌ
Building UI @NVIDIA AV Infra. Software Developer. Web Component & Design System enthusiast. @GoogleDevExpert for @angular.
https://coryrylan.com
Head of Engineering, Carbon Design System at IBM. Thoughts and ideas are my own.
design, software engineering, fusilli / design systems at Elastic
https://arturu.com/
Design systems && UX && research ohmy.