nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - `extendVariants` does not show variants

Open criskell opened this issue 2 months ago • 8 comments

HeroUI Version

@heroui/[email protected]

Describe the bug

After upgrading from @heroui/[email protected] to @heroui/[email protected], TypeScript doesn't list the custom variants I created.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Image

Expected behavior

I hope it lists HeroUI variants along with custom ones, like in the previous patch version.

Screenshots or Videos

No response

Operating System Version

Ubuntu

Browser

Chrome

criskell avatar Oct 05 '25 19:10 criskell

ENG-2831

linear[bot] avatar Oct 05 '25 19:10 linear[bot]

Can you copy the code and paste to your issue description and also show how it looks like in previous version?

wingkwong avatar Oct 06 '25 02:10 wingkwong

having the same issue after upgrading to 2.8.5, all custom variants added using extendVariants are no longer recognized - probably from these changes: https://github.com/heroui-inc/heroui/pull/5765/files#diff-82afce5da7fc694206f58a3f551f8dfae6a0eb6d355a9b4fe93791ada8fd3917R107

barbu-vlad avatar Oct 07 '25 09:10 barbu-vlad

@barbu-vlad could you please share your example as a reference?

wingkwong avatar Oct 07 '25 10:10 wingkwong

Image Image

Maybe I can prepare a codesandbox if this is not clear enough.

In my case the problems are mainly related to overriding the color property on Date related components (input / picker / range picker) and select component

barbu-vlad avatar Oct 07 '25 11:10 barbu-vlad

please provide a sandbox so that I could directly check on it. thanks.

wingkwong avatar Oct 07 '25 12:10 wingkwong

please provide a sandbox so that I could directly check on it. thanks.

https://codesandbox.io/p/devbox/react-heroui-4gqp6t

Let me know if you can access it

Steps to run it: 1.) pnpm dev 2.) open app/page.tsx 3.) see that the color type is undefined

Image Image

Let me know if you need anything else

barbu-vlad avatar Oct 07 '25 13:10 barbu-vlad

Yes. Able to access. Thanks. will take a look.

wingkwong avatar Oct 07 '25 15:10 wingkwong