您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

47 行
1.0 KiB

  1. import {createTopicTeaser} from "./TopicTeaserComponent";
  2. export default {
  3. title: 'Components/Topics Teaser',
  4. argTypes: {
  5. type: {
  6. name: 'Typ',
  7. control: {type: 'select'},
  8. options: ['single-topic', 'topic-linklist'],
  9. defaultValue: 'single-topic',
  10. },
  11. title: {
  12. name: 'Titel',
  13. control: 'text',
  14. defaultValue: 'Schwerpunktthema Digitalisierung',
  15. },
  16. link: {
  17. name: 'Link',
  18. control: 'text',
  19. defaultValue: '#',
  20. },
  21. icon: {
  22. name: 'Icon',
  23. control: {type: 'select'},
  24. options: ['Roboter', 'Anker', 'Blitz', 'Buch Brille', 'Brexit', 'Chart', 'Rettungsring', 'Magazin'],
  25. defaultValue: 'Roboter',
  26. }
  27. },
  28. globals: {
  29. backgrounds: {
  30. value: "lightblue"
  31. }
  32. }
  33. }
  34. const TopicTeaser = ({...args}) => {
  35. return createTopicTeaser({...args});
  36. }
  37. export const SingleTopicTeaser = TopicTeaser.bind({});
  38. SingleTopicTeaser.args = {};
  39. export const TopicLinkList = TopicTeaser.bind({});
  40. TopicLinkList.args = {
  41. type: 'topic-linklist',
  42. };