function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Douglas MolinaDouglas Molina 

How to create Lightning Components that are containers for other Lightning Components?

Hi!

Is it currently possible to create a parent Lightning component that contains areas/slots where I can drag/drop child components inside using the App Builder?


The idea is similar to the Tabs standard component (parent/container) with any other component (as child).

Please notice I'm not referring to Lightning templates (as a page template), but rather the components themselves.



User-added image
User-added image
Thank!
HarshHarsh (Salesforce Developers) 
Hi Douglas,

There is the same requirement on Salesforce Stack Exchange, for that you can refer to the below link.

https://salesforce.stackexchange.com/questions/381506/i-want-to-create-a-lightning-web-component-that-can-contain-components-within-it 

Please mark it as Best Answer if the above information was helpful.

Thanks.