Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
show name of the user on hover on material ui Avatar component

Hi i have a profile page in my website and i am displaying the image of the profile holder using the material-ui Avatar component i want to show the name of the profile holder in the center of avatar and the sample code is given blow

        <div {...otherProps} style={{ display: 'block', margin: 'auto' }}>
            <StyledBadge
                overlap="circular"
                anchorOrigin={{
                    vertical: 'bottom',
                    horizontal: 'right',
                }}
                variant={showBadge ? "dot" : "standard"}
            >
                <Avatar alt="avatar" src={src || defaultImg} className={clsx(classes.avatar, classes[size])} />
            </StyledBadge>
    </div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use Tooltip component from MUI:

import Tooltip from "@material-ui/core/Tooltip";
import Avatar from "@material-ui/core/Avatar";

...

<Tooltip title={userName}>
  <Avatar src={userProfilePicture}></Avatar>
</Tooltip>

See also Tooltip material doc page

Codesandbox exemple

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!