textCopyInput.stories.js 497 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import {action} from '@storybook/addon-actions';
  3. import TextCopyInput from 'app/views/settings/components/forms/textCopyInput';
  4. export default {
  5. title: 'Utilities/TextCopyInput',
  6. component: TextCopyInput,
  7. argTypes: {
  8. children: {
  9. table: {
  10. disable: true,
  11. },
  12. },
  13. },
  14. };
  15. export const _TextCopyInput = () => (
  16. <TextCopyInput onCopy={action('Copied!')}>Value to be copied </TextCopyInput>
  17. );
  18. _TextCopyInput.storyName = 'TextCopyInput';