questionTooltip.stories.js 844 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {Fragment} from 'react';
  2. import QuestionTooltip from 'sentry/components/questionTooltip';
  3. import theme from 'sentry/utils/theme';
  4. export default {
  5. title: 'Components/Tooltips/Question Tooltip',
  6. component: QuestionTooltip,
  7. args: {
  8. title: 'tooltip',
  9. size: theme.iconSizes.sm,
  10. },
  11. argTypes: {
  12. size: {
  13. control: {
  14. type: 'select',
  15. options: theme.iconSizes,
  16. },
  17. },
  18. },
  19. };
  20. export const _QuestionTooltip = ({...args}) => {
  21. return (
  22. <Fragment>
  23. <h3>
  24. Some Jargon Term
  25. <QuestionTooltip {...args} />
  26. </h3>
  27. </Fragment>
  28. );
  29. };
  30. _QuestionTooltip.storyName = 'Question Tooltip';
  31. _QuestionTooltip.parameters = {
  32. docs: {
  33. description: {
  34. story:
  35. 'Show a question mark icon with a tooltip to provide in context help information.',
  36. },
  37. },
  38. };