Develop ultra fast with Prismane 🎉

Avatar API

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

Import

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

Props

Avatar extends Box component's props.

NameTypeDescriptionDefault
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.-

CSS

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.