import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'; import { AvatarAccount } from './avatar-account'; import { AvatarBase } from '../'; # AvatarAccount The `AvatarAccount` is a type of avatar reserved for representing accounts. ## Props The `AvatarAccount` accepts all props below as well as all [Box](/docs/components-ui-box--default-story#props) component props `AvatarAccount` accepts all [AvatarBase](/docs/components-componentlibrary-avatarbase--default-story)) component props ### Size Use the `size` prop and the `Size` object from `./ui/helpers/constants/design-system.js` to change the size of `AvatarAccount` Optional: `AVATAR_ACCOUNT_SIZES` from `./ui/components/component-library` object can be used instead of `SIZES` Possible sizes include: - `Size.XS` 16px - `Size.SM` 24px - `Size.MD` 32px - `Size.LG` 40px - `Size.XL` 48px Defaults to `SIZES.MD` ```jsx import { Size } from '../../../helpers/constants/design-system'; import { AvatarAccount } from '../ui/component-library'; ``` ### Type Use the `type` prop for the avatar to be rendered, it can either be a Jazzicon or a Blockie ```jsx import { TYPES } from './avatar-account.constants'; import { AvatarAccount } from '../ui/component-library'; ``` ### Address Use the required `address` for generating images ```jsx import { TYPES } from './avatar-account.constants'; import { AvatarAccount } from '../ui/component-library'; ```