AvatarProps
Home > @backstage/ui > AvatarProps
Signature:
export interface AvatarProps extends React.ComponentPropsWithoutRef<'div'>
Extends: React.ComponentPropsWithoutRef<'div'>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
Name of the person - used for generating initials and accessibility labels | ||
|
'decoration' | 'informative' |
(Optional) Determines how the avatar is presented to assistive technologies. - 'informative': Avatar is announced as "{name}" to screen readers - 'decoration': Avatar is hidden from screen readers (use when name appears in adjacent text) | ||
|
'x-small' | 'small' | 'medium' | 'large' | 'x-large' |
(Optional) Size of the avatar | ||
|
string |
URL of the image to display |