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.
 
 
 
 

51 regels
1.3 KiB

  1. import {createMiniTeaser} from "./MiniTeaserComponent";
  2. export default {
  3. title: 'Components/Mini Teaser',
  4. parameters: {
  5. backgrounds: {
  6. default: 'white',
  7. },
  8. },
  9. argTypes: {
  10. type: {
  11. name: 'Typ',
  12. control: {type: 'select'},
  13. options: ['standard', 'infoteaser'],
  14. defaultValue: 'standard',
  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 MiniTeaser = ({...args}) => {
  35. return createMiniTeaser({...args});
  36. }
  37. export const StandardMiniTeaser = MiniTeaser.bind({});
  38. StandardMiniTeaser.args = {};
  39. export const infobanner = MiniTeaser.bind({});
  40. infobanner.args = {type:'infoteaser'};
  41. export const infobannerWithoutIcon = MiniTeaser.bind({});
  42. infobannerWithoutIcon.args = {type:'infoteaser', icon: null};
  43. export const infobannerBackground = MiniTeaser.bind({});
  44. infobannerBackground.args = {type:'infoteaser', backgroundImage: 'https://source.unsplash.com/2vCqH34PqWs/1080x648'};