A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/components/component-library/avatar-account
Nidhi Kumari e72dfad21a
added AvatarAccount component (#15795)
2 years ago
..
README.mdx added AvatarAccount component (#15795) 2 years ago
avatar-account.constants.js added AvatarAccount component (#15795) 2 years ago
avatar-account.js added AvatarAccount component (#15795) 2 years ago
avatar-account.scss added AvatarAccount component (#15795) 2 years ago
avatar-account.stories.js added AvatarAccount component (#15795) 2 years ago
avatar-account.test.js added AvatarAccount component (#15795) 2 years ago
index.js added AvatarAccount component (#15795) 2 years ago

README.mdx

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import { AvatarAccount } from './avatar-account';

# AvatarAccount

The `AvatarAccount` is a type of avatar reserved for representing accounts.

<Canvas>
<Story id="ui-components-component-library-avatar-account-avatar-account-stories-js--default-story" />
</Canvas>

## Props

The `AvatarAccount` accepts all props below

<ArgsTable of={AvatarAccount} />

### Size

Use the `size` prop to set the size of the `AvatarAccount`.

Possible sizes include:

- `xs` 16px
- `sm` 24px
- `md` 32px
- `lg` 40px
- `xl` 48px

Defaults to `md`

<Canvas>
<Story id="ui-components-component-library-avatar-account-avatar-account-stories-js--size" />
</Canvas>

### type

Use the `type` prop for the avatar to be rendered, it can either be a Jazzicon or a Blockie

<Canvas>
<Story id="ui-components-component-library-avatar-account-avatar-account-stories-js--type" />
</Canvas>