Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

366
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda