1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 15:14:29 +01:00
metamask-extension/ui/components/ui/site-icon
2021-11-24 11:43:22 -08:00
..
index.js
README.mdx
site-icon.js
site-icon.stories.js
site-icon.test.js

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

import SiteIcon from '.';

# SiteIcon

SiteIcon uses the `IconBorder` and `IconWithFallback` components to create an icon within a gray ellipse

<Canvas>
  <Story id="ui-components-ui-site-icon-site-icon-stories-js--default-story" />
</Canvas>

## Component API

<ArgsTable of={SiteIcon} />

## Usage

The following describes the props and example usage for this component.

### Fallback

`SiteIcon` wraps the `IconWithFallback` component which has a fallback `onError` and will display the first letter of the `name` prop

<Canvas>
  <Story id="ui-components-ui-site-icon-site-icon-stories-js--fallback" />
</Canvas>