How to reuse floating labels?

Greetings! I’m using "@ionic/angular": "7.4.1" and need your advice.

Almost every Control in my form supports floating labels (ion-input, ion-checkbox, ion-select, etc), but I have one special/custom Control which should also blend in. How can I integrate ionic floating labels? are there some css-classes which I can reuse? or Providers? Or other API’s?

(side note: since upgrading to v7 I’m forced to use the experimental <ion-text slot="label" color="medium"> because both label and value use the same --color variable)