1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/multichain/address-copy-button/address-copy-button.stories.js
2023-03-29 11:14:38 -05:00

37 lines
861 B
JavaScript

import React from 'react';
import { AddressCopyButton } from '.';
export default {
title: 'Components/Multichain/AddressCopyButton',
component: AddressCopyButton,
argTypes: {
address: {
control: 'text',
},
shorten: {
control: 'boolean',
},
wrap: {
control: 'boolean',
},
},
args: {
address: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
},
};
export const DefaultStory = (args) => <AddressCopyButton {...args} />;
DefaultStory.storyName = 'Default';
export const ShortenedStory = (args) => <AddressCopyButton {...args} />;
ShortenedStory.storyName = 'Shortened';
ShortenedStory.args = { shorten: true };
export const WrappedStory = (args) => (
<div style={{ width: '200px' }}>
<AddressCopyButton {...args} />
</div>
);
WrappedStory.storyName = 'Wrapped';
WrappedStory.args = { wrap: true };