1

I have a Managed Package with several LWC's .
And I want to create another LWC , in which my clients will have possibility to put their LWC.
So I need some container in my Managed LWC where I can put Customer LWC

Does Lightning Web Components provide us with such possibility to accomplish this?

Any help will be appreciated.

Thank you.

1 Answer 1

2

Currently this is not possible as the documentation states (note on the isExposed attribute):

A custom Lightning web component can’t access a Lightning web component or module in a custom namespace. It can access Lightning web components and modules only in the c and lightning namespaces.

This would be the case for using slots, as described in here, if it were supported by the framework. Maybe it will be supported at some point in the future...

2
  • 1
    One of the Partner Tech Talks covered ("safe harbour") an up-coming feature allowing cross-namespace LWC usage in an LWC template. Quite when that might appear is, of course, anyone's guess.
    – Phil W
    Commented Dec 1, 2021 at 11:52
  • This should work with the new Lightning Web Security feature that is now in Beta and may replace Lightning Locker at some point in the future, give it a try to see if it solves your problem: help.salesforce.com/s/… Commented Dec 1, 2021 at 13:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .