Develop ultra fast with Prismane 🎉

Avatar API

Learn about the Avatar component's props and CSS classes.


import { AvatarProps } from "@prismane/core";


Avatar extends Box component's props.

srcstringThe source of the avatar's image.-
srcSetstringThe srcSet property of the avatar's image.-
altstringThe alt text of the avatar's image.-
sizesstringThe sizes property of the avatar's image.-
colorPrismaneColors The color of the avatar's container.-


Avatar extends Box component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAvatar-rootThe wrapper box of the container.
root.PrismaneAvatar-root-sizeThe wrapper box of the container based on it's size.