Avatar

User profile image component

Import

import { Avatar } from '@windmill/react-ui'

Size

There are three sizes, applied by the prop size: large, regular (default) and small.

Judith
Judith
Judith
live editor

Image

Pass an image to the avatar using the prop src.

Judith
live editor

Alternate text

Pass an alternate text to the avatar using the prop alt.

George
live editor

Props overview

PropDescriptionTypeDefault
sizedefine the size of componentlarge, regular, smallregular
srcrequired define the src of the imagestring
altrequired alternate text of the imagestring

Customizing

See Customization to learn how to change defaultTheme styles.