Skip to content
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

Nesting Stacks - "Components can't contain instances of themselves" #345

Closed
johnlahut opened this issue May 7, 2024 · 2 comments
Closed
Assignees
Labels
figma support: question Community support but can be turned into an improvement

Comments

@johnlahut
Copy link

johnlahut commented May 7, 2024

The problem in depth

Using the latest MUI for Figma, I am trying to design a UI using the design kit. The design requires me to use some nested Stack components.

When I add a Stack and then replace an instance of that Stack with another Stack, Figma gives an error "Components can't contain instances of themselves".

How can I put a Stack within a Stack using the design kit?

Your environment

No response

Search keywords: instances of themselves, figma

@johnlahut johnlahut added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: question Community support but can be turned into an improvement labels May 7, 2024
@adrianmanea
Copy link
Collaborator

adrianmanea commented May 8, 2024

Hi John, Figma doesn't allow nesting the same component instance on itself. As a workaround, you can try creating a new component that groups the items you want to include. Then, you can use this new component within your main component. This will give you more flexibility and maintainability in your design system.

@johnlahut
Copy link
Author

@adrianmanea I see. Thanks for the help!

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
figma support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants