-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] - Report: Avatar Component from @heroui/react Not Working (Works with @nextui-org/react) #4651
Comments
Assuming the version of |
Hi @wingkwong This is also happening with the Image component. The In the main code I am receiving a jpeg image from a Django server, Then it becomes a blob using |
have you updated Ui Provider ? import { NextUIProvider } from "@nextui-org/system"; to below ones import { HeroUIProvider } from "@heroui/system"; as you said "Observe that the Avatar component does not render or function correctly." |
Yes, I have done that already... Currently, this is the workaround I'm using: The <div className="relative -top-24 left-3">
{profilePicUrl ? (
<img
className="dark:border-content5 size-20 rounded-full border-4 outline outline-1 outline-foreground-500"
alt="profile-pic"
src={profilePicUrl}
/>
) : (
<Avatar
className="dark:border-content5 h-20 w-20"
src={undefined}
/>
)}
</div> |
@anandhibare can you please provide a minimal reproducible environment? So far what you've provided includes other unrelated extra logic. We need a sandbox so that we could start from the same page. |
HeroUI Version
2.6.14
Describe the bug
The
Avatar
component does not function as expected when imported from@heroui/react
, but it works perfectly when imported from@nextui-org/react
.Here’s the code snippet used for testing:
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Steps to Reproduce
Expected behavior
Expected Behavior
The Avatar component should work identically when imported from
@heroui/react
as it does when imported from@nextui-org/react
.Screenshots or Videos
No response
Operating System Version
WSL (Ubuntu) on Windows 11
Browser
Chrome
The text was updated successfully, but these errors were encountered: