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/hold-to-reveal-button/hold-to-reveal-button.stories.js

23 lines
495 B
JavaScript
Raw Normal View History

import React from 'react';
import HoldToRevealButton from './hold-to-reveal-button';
export default {
title: 'Components/App/HoldToRevealButton',
argTypes: {
buttonText: { control: 'text' },
onLongPressed: { action: 'Revealing the SRP' },
},
};
export const DefaultStory = (args) => {
return <HoldToRevealButton {...args} />;
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
buttonText: 'Hold to reveal SRP',
onLongPressed: () => console.log('Revealed'),
};