nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.77k stars 1.49k forks source link

[BUG] - Type issue with extendVariants #3790

Open alexnguyennz opened 3 weeks ago

alexnguyennz commented 3 weeks ago

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

  1. 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

linear[bot] commented 3 weeks ago

ENG-1386 [BUG] - Type issue with extendVariants