Open prevwong opened 3 months ago
Enforce slot accepts directive to only allow component of certain types to be used as slot children:
accepts
component Card() => ( <div> <slot name="top" accepts={Button} /> </div> )
This will allow us to achieve similar drag and drop rules that exists in Craft currently
Enforce slot
accepts
directive to only allow component of certain types to be used as slot children:This will allow us to achieve similar drag and drop rules that exists in Craft currently