Using extendVariants in RSC cause error and why import from /react? #2251
-
I have the need to extend some components with our own colors and followed the guide. And why do we need to import extendVariants from /react but the docs states that it should be avoided? This is the button:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I too have this issue, except I do want to use it in a server component. :( |
Beta Was this translation helpful? Give feedback.
-
@J4v4Scr1pt You can use something like that instead or /react:
|
Beta Was this translation helpful? Give feedback.
@J4v4Scr1pt You can use something like that instead or /react:
import { extendVariants } from '@heroui/system'