Skip to content
New issue

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

[BUG] - Type issue with extendVariants #3790

Open
alexnguyennz opened this issue Sep 23, 2024 · 1 comment
Open

[BUG] - Type issue with extendVariants #3790

alexnguyennz opened this issue Sep 23, 2024 · 1 comment
Labels
🐛 Type: Bug Something isn't working

Comments

@alexnguyennz
Copy link
Contributor

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

Copy link

linear bot commented Sep 23, 2024

@wingkwong wingkwong added the 🐛 Type: Bug Something isn't working label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants