Patternfly Logo

Examples

Basic

avatar

Props

Avatar properties
NameTypeRequiredDefaultDescription
altstringYesAttribute that specifies the alternate text of the image for the Avatar.
classNamestringNo''Additional classes added to the Avatar.
srcstringNo''Attribute that specifies the URL of the image for the Avatar.

CSS variables

.pf-c-avatar--pf-c-avatar--BorderRadius
30em
.pf-c-avatar--pf-c-avatar--Width
2.25rem
.pf-c-avatar--pf-c-avatar--Height
2.25rem

View source on GitHub