Professional software plumber currently building web components with StencilJS and sharing what I learn as I learn it.
The official Web Component spec does not allow for the dynamic passing of attributes or properties to slotted content via the <slot /> tag (which is possible in Vue/React/Angular/Etc). This is an easy way to get around that limitation.