CUSTOMIZE HTML STRUCTURE: Is it possible to add elements with out a lot existing? #11873
Open
2 tasks done
Labels
question
Further information is requested
Summary
I would like to modify
header-menu.ts
to add an icon that doesn't exist in the component and there isn't a slot for thisThis (below) is what I want. I was able to do this using the svelte carbon library by just using the markup generated by the components but I would like to know if this is possible with web components because I would like to make the switch
This is what the base component looks like
To give some context, here is what what component looks like...
Since web components are real elements, the browser displays their source exactly how they were defined. So
<header-menu>
displays as<header-menu>
and the markup is not generated i.e.<div class="cds--header-menu">...</div>
. I have tried to grab the pieces of the shadow dom and pieced the component together and also tried just copying the html returned in the component file but I could not get it to workCan someone recommend a way to do this? is it even possible? It seems Lit only allows you to extend styling and not structural pieces of a component
I hope I was clear in my question. Thanks
Relevant information
No response
Name and organization
Billy Figueroa
Code of Conduct
The text was updated successfully, but these errors were encountered: