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
Justin Léger 753666d9c2
Fix connected site styling (#15409)
2 years ago
..
README.mdx Updated all instances of "Component API" to "Props" in storybook documentation (#15324) 2 years ago
index.js remove the ui/app and ui/lib folders (#10911) 4 years ago
site-icon.js Fix connected site styling (#15409) 2 years ago
site-icon.stories.js Updating IconWithFallback to functional component, adding stories and docs (#12797) 3 years ago
site-icon.test.js Unit test proptype (#14868) 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>

## 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="ui-components-ui-site-icon-site-icon-stories-js--fallback" />
</Canvas>