4

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

3
  • 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
    Commented Sep 26, 2019 at 13:37
  • 3
    @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 Commented Sep 26, 2019 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. Commented Sep 27, 2019 at 13:33

1 Answer 1

3

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

2
  • 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. Commented Sep 27, 2019 at 13:34
  • As someone mentioned in that IdeaExchange link, it IS possible to do this in LWR sites, but still not in Lightning Experience. See developer.salesforce.com/docs/atlas.en-us.exp_cloud_lwr.meta/… Commented Mar 15, 2023 at 21:20

You must log in to answer this question.

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