nextui
nextui copied to clipboard
[BUG] - Type issue with extendVariants
NextUI Version
Latest nextui init my-nextui-app - unsure which package
Describe the bug
Type issue with startContent and endContent which results in an error of Type 'Element' is not assignable to type 'string | number | symbol | never[] | undefined'.
Happens with another component e.g. Chip that uses these same props.
Your Example Website or App
https://codesandbox.io/p/github/alexnguyennz/my-nextui-app/main
Steps to Reproduce the Bug or Issue
- Open src/button.tsx
Expected behavior
Be able to pass element (Element or ReactNode) to startContent and endContent similar to using the Button component directly
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome
@wingkwong Could you please assign this issue to me?
closing - not reproducible.