You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm looking for a way of passing content to a Custom Web Component with Light DOM enable, since the use of <slot> is not possible I have passed strings for text content as attribute values, I could say is not problem for Atomic Components, but it gets complex and vulnerable when I need to pass content for a more complex component, passing HTML markup within an attribute is not a good idea.
Do you know any alternatives? So, I can make it work with light DOM.
I paste an example of list component that I have now
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm looking for a way of passing content to a Custom Web Component with Light DOM enable, since the use of
<slot>
is not possible I have passed strings for text content as attribute values, I could say is not problem for Atomic Components, but it gets complex and vulnerable when I need to pass content for a more complex component, passing HTML markup within an attribute is not a good idea.Do you know any alternatives? So, I can make it work with light DOM.
I paste an example of list component that I have now
list.ts
template.ts
storie.ts
I'm sorry if it is a Dumb question, but I run out of ideas
Beta Was this translation helpful? Give feedback.
All reactions