Add control over allowed components in a slot

Introduce the ability to specify which components or folders of components can be inserted into a slot. This feature would provide greater control over the content within slots, ensuring consistency and alignment with design or functional requirements. It would also streamline the editing process by limiting options to relevant components, improving usability and reducing potential errors.

  • Sander Terpstra
  • Nov 26 2024
  • Reviewed
  • Syed Mahbub commented
    06 Aug 00:13

    This is a cool suggestion
    also it would be a good addition not nessary if slots had the ability to act like an empty shell / ghost

    like it won't render any extra element like div it'll directly render parent and childrens
    and when i need only than i'll make slot like normal element if i want