clipboardTooltip.stories.js 562 B

123456789101112131415161718192021222324
  1. import ClipboardTooltip from 'sentry/components/clipboardTooltip';
  2. export default {
  3. title: 'Components/Tooltips/Clipboard Tooltip',
  4. component: 'ClipboardTooltip',
  5. args: {
  6. title: 'Tooltip content',
  7. },
  8. };
  9. export const _ClipboardTooltip = ({...args}) => (
  10. <ClipboardTooltip {...args}>
  11. This text displays a tooltip when hovering
  12. </ClipboardTooltip>
  13. );
  14. _ClipboardTooltip.storyName = 'Clipboard Tooltip';
  15. _ClipboardTooltip.parameters = {
  16. docs: {
  17. description: {
  18. story: 'Displays a hoverable tooltip with a copy icon.',
  19. },
  20. },
  21. };