Skip to content

Wrapper Component for Item #4270

Answered by devongovett
ashleyryan asked this question in Q&A
Discussion options

You must be logged in to vote

For now this isn't really supported, though you started having the right idea of how you could implement it with getCollectionNode. However, often you can make a component that you put inside <Item> rather than wrapping Item itself. For example, <Item><FancyListBoxOption {...someProps} /></Item>.

In the future wrapping Item will be supported, however. See this section of our recent React Aria Components RFC for more details on how that will work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@snowystinger
Comment options

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