79175726

Date: 2024-11-10 20:33:56
Score: 2
Natty:
Report link

I found a previous answer suggesting adding the attribute to the web component class directly. This works very nicely:

    override render() {
        this.slot = `button-icon-${this.position}`;
        return html`<span>*</span>`
    }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SmujMaiku