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

365
Views
Chakra UI - Avatar component customization

I'm trying to put an overlay over Avatar component image, but I can't figure out how to extend the theme properly.

What I've tried so far:

import { extendTheme } from '@chakra-ui/react';
export const theme = extendTheme({
  components: {
    Avatar: {
      parts: ['container', 'excessLabel', 'label']
      baseStyle: {
        excessLabel: {
          _before: {
           // overlay
          }
        }
      },
    },
  },
});

I tried to look at the theme source and figured it's a multipart component, but can't figure out how to target the src background image. And not sure about those parts either. Anyone, to enlighten me on how it should work?

https://chakra-ui.com/docs/media-and-icons/avatar

about 4 years ago · Juan Pablo Isaza
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!