mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
50 lines
817 B
JavaScript
50 lines
817 B
JavaScript
import React from 'react';
|
|
|
|
import README from './README.mdx';
|
|
import IconWithFallback from '.';
|
|
|
|
export default {
|
|
title: 'Components/UI/IconWithFallback',
|
|
id: __filename,
|
|
component: IconWithFallback,
|
|
parameters: {
|
|
docs: {
|
|
page: README,
|
|
},
|
|
},
|
|
argTypes: {
|
|
icon: {
|
|
control: 'text',
|
|
},
|
|
name: {
|
|
control: 'text',
|
|
},
|
|
size: {
|
|
control: 'number',
|
|
},
|
|
className: {
|
|
control: 'text',
|
|
},
|
|
fallbackClassName: {
|
|
control: 'text',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <IconWithFallback {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
name: 'ast',
|
|
icon: './AST.png',
|
|
size: 24,
|
|
};
|
|
|
|
export const Fallback = (args) => <IconWithFallback {...args} />;
|
|
|
|
Fallback.args = {
|
|
name: 'ast',
|
|
size: 24,
|
|
};
|