Ionic 5 - Modals - Use ElementRef or HTMLElement for the modal

Hello there,

I have a question: In the docs I can see, that it’s possible to use a HTMLElement for the modalCtrl component property, like this:

const modal = await this.modalController.create({
      component: ElementRef,
      cssClass: 'my-custom-class'

But when I try to use it, it’s not working, because it’s just accepting a component type, otherwise it can’t be resolved and I get this error:

Type passed in is not ComponentType, it does not have 'ɵcmp' property

Do I something wrong, are the docs wrong or where is the mistake?

Thanks in advance!