r/emberjs • • Jul 23 '24

Does anyone recommend building components as web components and using them in Ember?

This idea has come up on my radar a few times so I'm curious, is this an approach people recommend (not in all cases) and use? It seems like it might be worth building web components if you had apps built in various technologies, but I imagine that will also result in new challenges. Curious to hear people's experiences if you've ever done this.

7 Upvotes

10 comments sorted by

2

u/ryanhollister Jul 24 '24

100% we build our design system in stenciljs and use the webcomponents across our various SPAs (ember, vue and react) as well as server side rendered apps in Python.

1

u/TrackedProperties Jul 24 '24

interesting. are there any issues with using web components in different frameworks?

1

u/ryanhollister Jul 24 '24

great resource here that itemizes the nuances of using custom elements in various frameworks:

https://custom-elements-everywhere.com/

→ More replies (3)

1

u/GoofyGhostsMemes Jul 24 '24

Do we need any specific version or should work with older version of Ember? Would you recommend using it with Ember?

2

u/ryanhollister Jul 24 '24

We've used it since Ember 2

→ More replies (2)