1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/components/component-library/base-avatar
ryanml 0bc1eeaf37
Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989)
* Deprecating Rinkeby, setting default debug network to Goerli

* Deprecating Ropsten and Kovan

* Conflict fix

* Remove unused localization, test fixes

* Add migration for moving used deprecated testnets to custom networks

* Fix migrator test

* Add more unit tests

* Migration updates provider type to rpc if deprecated network is selected

* Migration fully and correctly updates the provider if selected network is a deprecated testnet

* Continue to show deprecation warning on each of rinkeby, ropsten and kovan

* Add rpcUrl deprecation message to loading screen

* Removing mayBeFauceting prop

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-28 20:26:01 -07:00
..
base-avatar.js added avatar token component (#15466) 2022-08-18 22:00:19 +05:30
base-avatar.scss added avatar token component (#15466) 2022-08-18 22:00:19 +05:30
base-avatar.stories.js Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00
base-avatar.test.js added AvatarBase Component (#15307) 2022-08-01 15:14:33 +05:30
index.js added AvatarBase Component (#15307) 2022-08-01 15:14:33 +05:30
README.mdx added avatar token component (#15466) 2022-08-18 22:00:19 +05:30

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

import { BaseAvatar } from './base-avatar';

### This is a base component. It should not be used in your feature code directly but as a "base" for other UI components

# BaseAvatar

The `BaseAvatar` is a wrapper component responsible for enforcing dimensions and border radius for Avatar components

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

## Props

The `BaseAvatar` accepts all props below as well as all [Box](/ui-components-ui-box-box-stories-js--default-story) component props.

<ArgsTable of={BaseAvatar} />

### Size

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

Possible sizes include:

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

Defaults to `md`

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

### Children

The `BaseAvatar` component can contain images, icons or text

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

### Color, Background Color And Border Color

Use the `color`, `backgroundColor` and `borderColor` props to set the text color, background-color and border-color of the s of the `BaseAvatar`.

<Canvas>
  <Story id="ui-components-component-library-base-avatar-base-avatar-stories-js--color-background-color-and-border-color" />
</Canvas>