-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple draggable component "slots" #550
Comments
Hi @samiresua, thanks for the feedback. We are currently looking into a way to do this, and maybe we could get some feedback from you on what we are thinking so far? We are thinking of having a |
This sounds great. Could it just render into a react fragment to avoid muddying the dom with another container? Are you planning any way to only allow certain components to be allowed into drop zones? For example. I might have an Accordion component that should only accept components that are AccordionItems. |
We have implemented multiple slots feature, described here in the documentation: https://www.contentful.com/developers/docs/experiences/layout-structures/#complex-components-with-multiple-slots-for-nesting-children In case you're wondering how
|
Some custom components might have multiple composable parts that need to be rendered in different areas.
children
is great for just one slot, but i wonder if supporting more than one child could be supported?Could a new
type
be added into the variables for the component definition. Perhaps something liketype: 'Component'
?I can also see being able to limit/validate what components are 'allowed' to be dropped into specific slots being super handy 👍
The text was updated successfully, but these errors were encountered: