import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type AvatarSlot = "root" | "img" | "fallback"; interface AvatarPropsColorOverrides { } interface AvatarPropsVariantOverrides { } interface AvatarPropsSizeOverrides { } interface ComponentsProps { root?: SlotComponentProps<"div", { sx?: SxProps; }, AvatarOwnerState>; img?: SlotComponentProps<"img", { sx?: SxProps; }, AvatarOwnerState>; fallback?: SlotComponentProps<"svg", { sx?: SxProps; }, AvatarOwnerState>; } interface AvatarTypeMap
{
props: P & {
/**
* Used in combination with `src` or `srcSet` to
* provide an alt attribute for the rendered `img` element.
*/
alt?: string;
/**
* Used to render icon or text elements inside the Avatar if `src` is not set.
* This can be an element, or just a string.
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'neutral'
*/
color?: OverridableStringUnion