We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.1.7
Using the exact example from the doc:
<Listbox items={items} aria-label="Dynamic Actions" onAction={(key) => alert(key)} > {(item) => ( <ListboxItem key={item.key} color={item.key === "delete" ? "danger" : "default"} className={item.key === "delete" ? "text-danger" : ""} > {item.label} </ListboxItem> )} </Listbox>
gives a type error:
Type '(item: any) => Element' is not assignable to type 'ReactNode'.ts(2322) ParticipantList.tsx(73, 22): Did you mean to call this expression?
The same "items" approach works with tables and other components but not with the new Listbox.
No response
Using typescript project.
Should not warn, expect the behaviour as it is with Table for example. (It works there)
macOS
Chrome
The text was updated successfully, but these errors were encountered:
@phev8
I wasn't found type error from https://stackblitz.com/edit/vitejs-vite-qmivxs?file=src%2FApp.tsx mini repo. Can you provide a mini repo ?
Sorry, something went wrong.
Here is one, just used the basic NextJS setup, installed NextUI following the docs. When running npm run build I get the mentioned type error: https://codesandbox.io/p/sandbox/youthful-sunset-jhq4v6
npm run build
jrgarciadev
Successfully merging a pull request may close this issue.
NextUI Version
v2.1.7
Describe the bug
Using the exact example from the doc:
gives a type error:
The same "items" approach works with tables and other components but not with the new Listbox.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Using typescript project.
Expected behavior
Should not warn, expect the behaviour as it is with Table for example. (It works there)
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: