nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - Type issue with extendVariants

Open alexnguyennz opened this issue 1 year ago • 2 comments

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

alexnguyennz avatar Sep 23 '24 02:09 alexnguyennz

@wingkwong Could you please assign this issue to me?

IsDyh01 avatar Nov 10 '24 07:11 IsDyh01

closing - not reproducible.

wingkwong avatar Nov 30 '25 03:11 wingkwong