1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/components/app/network-display/network-display.stories.js

41 lines
732 B
JavaScript
Raw Normal View History

import React from 'react';
import NetworkDisplay from '.';
export default {
title: 'Components/App/NetworkDisplay',
id: __filename,
argTypes: {
colored: {
control: 'boolean',
},
indicatorSize: {
control: 'oneOf(Object.values(SIZES))',
},
labelProps: {
control: 'labelProps',
},
targetNetwork: {
control: 'object',
},
outline: {
control: 'boolean',
},
disabled: {
control: 'boolean',
},
iconClassName: {
control: 'text',
},
onClick: {
action: 'onClick',
},
},
args: {
iconClassName: 'caret',
},
};
export const DefaultStory = (args) => <NetworkDisplay {...args} />;
DefaultStory.storyName = 'Default';