I'm doing some research on modular Lightning Web Component. The idea is to have developers create LWC and admins can drag/drop to configure components.

With the standard Tabs/Accordion component (Shown below), it allows child components to be configured dynamically. Is there a way we can implement the same in LWC?

According to what I found so far it seems not possible in LWC - The workaround is somehow around using <slot> but that's still coding task.

enter image description here

  • Unless I'm misunderstanding, it seems like you're trying to recreate what is already in App Builder (which you tagged). Perhaps I'm just not understanding the question? – pchittum Sep 26 '19 at 13:37
  • 2
    @pchittum he probably means, if he added a component with slot in app-builder, he should be able to add another component in that parent component from app builder. Like the way we can add tab component and in tab component add our custom component – Pranay Jaiswal Sep 26 '19 at 13:45
  • @PranayJaiswal Yes I wanted to confirm if we can ever do that. The App Builder is Page -> Add Component and what I'm wondering is Component - Add Component. – Saffire Alex Sep 27 '19 at 13:33

It seems it is still not possible with either LWC or Aura. There is an Idea present for this you can upvote it.

| improve this answer | |
  • 1
    Thanks - After this post I did more research on Custom Page Template (Essentially an Aura Component accepting Aura.Component[]), but that can only be used at Lightning Page level. – Saffire Alex Sep 27 '19 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.