ImgComponent as Image from next.js #3295
Answered
by
wingkwong
uigywnkiub
asked this question in
Help
-
How can I use Image component from next.js as props ImgComponent in User component from nextui? |
Beta Was this translation helpful? Give feedback.
Answered by
wingkwong
Jun 21, 2024
Replies: 1 comment 3 replies
-
You can do in this way. avatarProps={{
ImgComponent: Image,
imgProps: {
src: session?.user.image || '',
width: 40,
height: 40,
alt: 'U',
},
}} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you try the following - putting src and alt outside imgProps.