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) => ;
DefaultStory.storyName = 'Default';
DefaultStory.args = {
name: 'ast',
icon: './AST.png',
size: 24,
};
export const Fallback = (args) => ;
Fallback.args = {
name: 'ast',
size: 24,
};