Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Avatars can be used to represent people or objects. It supports images or letters.
Props
are listed at the end of this page.
Use the src
prop to add image
provide a string of hex, rgb, hsla in color
prop to change color
Name | Description | Default |
---|---|---|
src | The address of the image for an image avatar or image element string | - |
alt | This attribute defines the alternative text describing the image string | "avatar" |
text | Alternative text to show if src is not providedstring | - |
shape | The shape of the avatar "square""circle" | - |
size | The size of the avatar "sm""md""lg" | - |
color | Color of the avatar as a string in case src is not usedstring | - |