#Attributes on lit-elements gets removed

3 messages · Page 1 of 1 (latest)

vocal light
#

Hi!

I'm testing out Astro a bit and have stumble on some issues with web components (lit based).
If I add a web component to a page:

<my-component test="hi" />

It will render the test="hi" attribute.

But if I add the lit-integration, it will no longer render the test="hi" attribute. It gets removed for some reason...
Any idea why?

Thanks!

quick ploverBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

vocal light
#

Here is some example of what I’m trying to do.
Let’s say I have a component named <map-component> which takes <point-component> as children.
So you can use them something like this:

<map-component>
    <point-component value="1,0"></point-component>
    <point-component value="1,1"></point-component>
    <point-component value="2,1"></point-component>
  </map-component>