[SalesForce] use base LWC in Aura component

I am trying to leverage the new lightning-input-rich-text component functionality(font sizing and link) in my Aura component. I have tried adding the component in many ways and none of them work. I get Invalid Descriptor Format.

Here is what i have tried:
<lightning-input-rich-text  ><lightning-input-rich-text>
<c:lightning-input-rich-text    ></c:lightning-input-rich-text>
<lightning:lightning-input-rich-text    ></lightning:lightning-input-rich-text>

Is this that I am trying even possible?

Best Answer

Yes you should be able to do this by wrapping up the LWC base component in a custom LWC Component. You can use custom LWC component in an Aura Component. Use this link to understand how to use custom LWC in aura component: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.interop_aura_composition This way you should be able to use benifit of LWC with existing AURA Component.

    <!-- Wrapper LWC - - >
    <template>
           <lightning-input-rich-text ....></lightning-input-rich-text>
    </template>

    <!-- AURA cmp - - >
    <c:Wrapper onchange="{! c.changeHandler}" />