Pass Multiple Children to a React Component with Slots
Pass Multiple Children to a React Component with Slots
Slots in React Aria Components is a great idea I especially like how the slot attribute makes its way into the HTML output
React allows you to pass children to a component by nesting them inside its JSX tag These elements are made available inside that
slotsgm In addition to Flex and Grid , some React Spectrum components include pre-built layouts which you can insert your content into via slots This often happens
slots 168 There are several patterns in React that correlate closely with Vue slots can be used, but only for default slot with no slotProps
Regular
price
161.00 ฿ THB
Regular
price
161.00 ฿ THB
Sale
price
161.00 ฿ THB
Unit price
/
per