I have a simple button component.
I trying to get the child content and pass it through to the button. Here is an example:
<my-button>
this is some <i>content</i>
</my-button>
I can't figure out how MyButton can pass along the children
class MyButton extends LitElement {
constructor(...args) {
super();
}
render({children}) {
return html`
<button class="primary" type="button">
${children}
</button>
`
}
}
I tried capturing all the args pass into render and the constructor, but found nothing that I can use to capture the content. Can someone point me in the right direction?
Thanks!