import { Avatar } from '@narimanb/wreactui'
There are three sizes, applied by the prop size: large, regular (default) and small.
large
regular
small
Code
<Avatar size="large" src="/img/avatar-1.jpg" alt="Judith" /> <Avatar src="/img/avatar-1.jpg" alt="Judith" /> <Avatar size="small" src="/img/avatar-1.jpg" alt="Judith" />
Pass an image to the avatar using the prop src.
src
<Avatar src="/img/avatar-1.jpg" alt="Judith" />
Pass an alternate text to the avatar using the prop alt.
alt
<Avatar src="/img/avatar-2.jpg" alt="George" />
size
required
string
There was an error while loading. Please reload this page.