1
/
of
1
RunKit + npm: @radix-uireact-slot
RunKit + npm: @radix-uireact-slot
This is a common pattern in libraries like Chakra UI and Reakit Here's the final example code for the Button component tsx import { Slot, type AsChildProps }
React Slots Pattern views · 4 years ago My Favorite Abstraction in React Explained
radixui_reactslot This is a common pattern in libraries like Chakra UI and Reakit Here's the final example code for the Button component tsx import { Slot, type AsChildProps }
radixui_reactslot You may skip this step if @nextui-orgreact is already installed globally You can customize any part of the avatar by using the classNames prop, each slot
Regular
price
124.00 ₹ INR
Regular
price
124.00 ₹ INR
Sale
price
124.00 ₹ INR
Unit price
/
per
Share
![radixui_reactslot](10081.jpg)