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.
Name | Type | Description | Default |
---|---|---|---|
src | string | The source of the avatar's image. | - |
srcSet | string | The srcSet property of the avatar's image. | - |
alt | string | The alt text of the avatar's image. | - |
sizes | string | The sizes property of the avatar's image. | - |
color | PrismaneColors | The color of the avatar's container. | - |
CSS
Avatar
extends Box component's CSS classes.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneAvatar-root | The wrapper box of the container. |
root | .PrismaneAvatar-root-size | The wrapper box of the container based on it's size. |