Skip to content

How to make react-aria's Item works with @emotion/react? #5605

Answered by LFDanLu
tuananhlai asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I see, so you aren't actually rendering anything extra in your CustomItem, Emotion CSS is autogenerating a wrapper element, my mistake. If that is the case, I'm not sure much can be done unfortunately, our old collection API is pretty strict about consuming elements with getCollectionNode only, that lack of wrapper support is actually a big reason why we've pushed for the new collections api for React Aria Components.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tuananhlai
Comment options

@LFDanLu
Comment options

LFDanLu Dec 20, 2023
Collaborator

Answer selected by tuananhlai
@tuananhlai
Comment options

@LFDanLu
Comment options

LFDanLu Dec 21, 2023
Collaborator

@tuananhlai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants