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/ui/site-icon
George Marshall 07f16d37be
Updating IconWithFallback to functional component, adding stories and docs (#12797)
3 years ago
..
README.mdx Updating IconWithFallback to functional component, adding stories and docs (#12797) 3 years ago
index.js remove the ui/app and ui/lib folders (#10911) 4 years ago
site-icon.js Updating IconWithFallback to functional component, adding stories and docs (#12797) 3 years ago
site-icon.stories.js Updating IconWithFallback to functional component, adding stories and docs (#12797) 3 years ago
site-icon.test.js Updating IconWithFallback to functional component, adding stories and docs (#12797) 3 years ago

README.mdx

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>