import type { IAppearanceableProps } from '../../../Behaviors/Appearanceable'; import type { IDisableableProps } from '../../../Behaviors/Disableable'; import type { ISizeableProps } from '../../../Behaviors/Sizeable'; import type { IVariantableProps } from '../../../Behaviors/Variantable'; /** * Represents the `IAvatarElementProps` interface. * * @public * */ export interface IAvatarElementProps extends IDisableableProps, ISizeableProps, IAppearanceableProps, IVariantableProps { /** * Text is used to display the initials. * By Default it will display the first letter of each word. * * The text is only used if no image or icon is provided. */ text: string; /** * TextAccessor is used to customize the text. * By Default it will display the first letter of each word. * * The text accessor is only used if no image or icon is provided. */ textAccessor: (value: string) => string; /** * Icon is used to display an icon. * By Default it will show nothing. * * The icon is only used if no image is provided. */ icon: string; /** * Src is used to display an image. * By Default it will show nothing. */ src: string; /** * DisplayMode defines how the avatar is displayed. * By Default it will show image if src is provided, otherwise icon if icon is provided, otherwise text. */ displayMode: 'image' | 'icon' | 'text' | null; } //# sourceMappingURL=IAvatarElementProps.d.ts.map