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.
George Marshall
07f16d37be
|
3 years ago | |
---|---|---|
.. | ||
README.mdx | 3 years ago | |
index.js | 4 years ago | |
site-icon.js | 3 years ago | |
site-icon.stories.js | 3 years ago | |
site-icon.test.js | 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>