RonakMehta
TTCTheo's Typesafe Cult
•Created by RonakMehta on 11/10/2023 in #questions
How do I make a web component that can hold any HTML and keep it to itself with Shadow DOM?
I need to create a custom component which would wrap some piece of html which will have a element and external library which would create inside the element.
so that I can encapsulate it in a shadow dom, not let the website styles impact the wrapped html ??
primary goal is to encapsulte the html, we just thought web component is the best bet.
3 replies