geoview-core
    Preparing search index...

    Variable AvatarConst

    Avatar: (props: AvatarPropsExtend) => Element = AvatarUI

    Type Declaration

      • (props: AvatarPropsExtend): Element
      • A customized Material-UI Avatar component.

        Parameters

        Returns Element

        A rendered Avatar component

        // Basic usage with text
        <Avatar>JD</Avatar>

        // With image
        <Avatar
        alt="User Name"
        src="/path/to/image.jpg"
        />

        // With custom styling
        <Avatar
        sx={{
        bgcolor: 'primary.main',
        width: 56,
        height: 56
        }}
        >
        <PersonIcon />
        </Avatar>

        For performance optimization in cases of frequent parent re-renders, consider wrapping this component with React.memo at the consumption level.