Files
dydx-v4-web/src/components/CopyButton.stories.tsx
T
aleka 876f620ada Account menu and components improvements (#145)
* better copy button

* hide sign into mobile for production and use new copy icon button

* new checkbox
2023-11-10 22:07:29 -05:00

29 lines
639 B
TypeScript

import type { Story } from '@ladle/react';
import { CopyButton, type CopyButtonProps } from '@/components/CopyButton';
import { StoryWrapper } from '.ladle/components';
export const CopyButtonStory: Story<CopyButtonProps> = (args) => (
<StoryWrapper>
<CopyButton {...args} />
</StoryWrapper>
);
CopyButtonStory.args = {
value: 'some text to copy',
};
CopyButtonStory.argTypes = {
buttonType: {
options: ["text", "icon", "default"],
control: { type: 'select' },
defaultValue: "default",
},
children: {
options: ['some text to copy'],
control: { type: 'select' },
defaultValue: undefined,
}
};