1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/components/ui/site-icon
Binij Shrestha 33cd2c7c18
added deprecation message above SiteIcon (#19256)
* added deprecation message above SiteIcon

* fix eslint

* Some small updates to show correct code formatting and removing params

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-06-01 09:32:10 -07:00
..
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
README.mdx Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
site-icon.js added deprecation message above SiteIcon (#19256) 2023-06-01 09:32:10 -07:00
site-icon.stories.js UX Multichain: updated ethereum logo icon (#18528) 2023-04-19 20:55:19 +05:30
site-icon.test.js UX Multichain: updated ethereum logo icon (#18528) 2023-04-19 20:55:19 +05:30

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="components-ui-siteicon--default-story" />
</Canvas>

## Props

<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="components-ui-siteicon--fallback" />
</Canvas>