Replies: 2 comments 2 replies
-
Might be helpful to look at our source for how we typed these https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/listbox/src/ListBoxOption.tsx#L28 |
Beta Was this translation helpful? Give feedback.
-
@snowystinger Apologies I am hoping to pick your brains again. In the ListBox component in the example props is supplier as I have the below error:
I have looked through the Repo you supplied the link to above, which helped a little. However I am a bit stuck with the children and CollectionChildren issues. Do you have any advice? Component so far:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Forgive me for a naive question. I have used the example and implemented a ListBox which works great and has my styling.
I am having a type issue with this part:
On the ({item, state)}
Binding element 'item' implicitly has an 'any' type.
Binding element 'state' implicitly has an 'any' type.
I am not sure what type they should be? item is from state.collection and state is from useListState pretty much how the example is - https://react-spectrum.adobe.com/react-aria/useListBox.html#sections
Beta Was this translation helpful? Give feedback.
All reactions