You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
1.0 KiB

  1. import {createTopicTeaser} from "./TopicTeaserComponent";
  2. export default {
  3. title: 'Components/Topics Teaser',
  4. parameters: {
  5. backgrounds: {
  6. default: 'lightblue',
  7. },
  8. },
  9. argTypes: {
  10. type: {
  11. name: 'Typ',
  12. control: {type: 'select'},
  13. options: ['single-topic', 'topic-linklist'],
  14. defaultValue: 'single-topic',
  15. },
  16. title: {
  17. name: 'Titel',
  18. control: 'text',
  19. defaultValue: 'Schwerpunktthema Digitalisierung',
  20. },
  21. link: {
  22. name: 'Link',
  23. control: 'text',
  24. defaultValue: '#',
  25. },
  26. icon: {
  27. name: 'Icon',
  28. control: {type: 'select'},
  29. options: ['Roboter', 'Anker', 'Blitz', 'Buch Brille', 'Brexit', 'Chart', 'Rettungsring', 'Magazin'],
  30. defaultValue: 'Roboter',
  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. };