Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
brazukadev
· 1mo ago · 0 comments
It is such a coincidence to find your project. ShadowDOM is my biggest issue with WebComponents and I got to a solution similar to yours.
Did you implement <slot> for light DOM or just use attributes?
Comments
[–]
EricFrost
1mo ago
Yes, Solarite will take any children of your element and reparent them into a <slot> element if your component has one. Or just append them to the end if not.