Slots, and situations in which to use <ClearSlots>? #2955
-
Hi there, I'm working on building a UI library with TailwindCSS and React-ARIA, and I'm trying to get a solid understanding of the I noticed that it is used in Spectrum's Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The best description is probably from #220 (comment), in the original PR by @snowystinger:
Basically, slots bring opinions, which is super useful, but sometimes you want to ignore them. Notice that most of the places we use this is either for container components, or where we want to specify a different slot provider inside. In the Button instance, we don't really have a need for either of those. |
Beta Was this translation helpful? Give feedback.
The best description is probably from #220 (comment), in the original PR by @snowystinger:
Basically, slots bring opinions, which is super useful, but sometim…