Avatar

Avatars are a visual way to represent a person or business in a user interface. Using avatars encourages empathy and builds trust between recipients, merchants, and consumers.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

JD

Usage

import { Avatar } from 'bio-bind-ui';
<Avatar
  alt='Jhon Doe'
  color='#0098B0'
  colorBadge='#039855'
  id='avatar'
  imageUrl=''
  max={4}
  mode='light'
  size='md'
  username='Jhon Doe'
/>

Examples

Items (optional)

Use items to add content to the accordion.

JD


Size (optional)

Use size to determine the size of the avatar.

JD

JD

JD

JD

JD

JD


Badge (optional)

Use badges to show the status of the avatar

JD


Type (optional)

Type for avatar text, image, icon.

JD


Mode (optional)

Use mode to use dark or light

JD


Props

PropsRequiredDefaultTypedescription
sizefalsemdxs, sm, md, lg, xlThe size of avatar component (xs, sm, md, lg, xl).
showBadgefalsefalsebooleanIf true, the badge will be assigned to the avatar.
colorBadgefalse-stringUnique identifier to change the badge color.
imageUrlfalse-stringA unique identifier for changing the image link.
altfalse-stringUnique identifier for changing alt.
usernamefalse-stringA unique identifier to change the initials of the name on the avatar.
modefalselightlight darkThe theme mode of the avatar (light or dark).
idfalse-stringA unique identifier for the avatar.
colorfalse-stringUnique identifier to change the background avatar color.
itemsfalse-AvatarItemProps[]A list item that contains the number of avatars for the avatar group.
maxfalse-numberIndex to determine the max number of avatar.
BIND © Biofarma Innovate Next-level Design .