textCopyInput.stories.js 441 B

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