Introducing Component Slots for Figma-to-React code in Amplify
Introducing Component Slots for Figma-to-React code in Amplify
Slots are usually named containers you pass as children so the parent knows how to deal with it React doesn't use this pattern because you can
Consumer Side Usage Plain React Props TableCell> CellCom • The wrapper component ComponentB takes React nodes
react slot You have to create a reusable component Once you built these, it is used at multiple places Someone approaches you with the new use case
reactoonz free play slot slot : A string Specifies the slot name when using shadow DOM In React, an equivalent pattern is typically achieved by passing JSX as props, for example
Regular
price
173.00 ₹ INR
Regular
price
173.00 ₹ INR
Sale
price
173.00 ₹ INR
Unit price
/
per