@vaadin/slotted-label-mixin

This package provides SlottedLabelMixin that does the following:

Usage no npm install needed!

<script type="module">
  import vaadinSlottedLabelMixin from 'https://cdn.skypack.dev/@vaadin/slotted-label-mixin';
</script>

README

@vaadin/slotted-label-mixin

This package provides SlottedLabelMixin that does the following:

  1. Add slotchange listener on the slot wrapped with element that has part~="label"

  2. Toggle label-empty part on that element depending on the text content presence