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.
 
 
 
 

52 lines
1.1 KiB

  1. import {createTopicTeasersSection} from "./TopicTeasersComponent";
  2. export default {
  3. title: 'Sections/TopicTeasers',
  4. parameters: {
  5. layout: 'fullscreen',
  6. },
  7. args: {
  8. headline: 'Unsere Themensammlung',
  9. type: 'single-topic',
  10. maxItems: 6,
  11. },
  12. argTypes: {
  13. maxItems: { control: { type: 'range', min: 1, max: 6, step: 1 } },
  14. type: { control: { type: 'select', options: ['single-topic', 'topic-linklist'] } },
  15. }
  16. }
  17. const Template = ({...args}) => {
  18. return createTopicTeasersSection({...args});
  19. };
  20. export const SingleTopicTiles = Template.bind({});
  21. SingleTopicTiles.args = {
  22. type: 'single-topic',
  23. };
  24. export const LinkListTeasers = Template.bind({});
  25. LinkListTeasers.args = {
  26. type: 'topic-linklist',
  27. };
  28. export const FiveTeasers = Template.bind({});
  29. FiveTeasers.args = {
  30. maxItems: 5,
  31. };
  32. export const FourTeasers = Template.bind({});
  33. FourTeasers.args = {
  34. maxItems: 4,
  35. };
  36. export const ThreeTeasers = Template.bind({});
  37. ThreeTeasers.args = {
  38. maxItems: 3,
  39. };
  40. export const TwoTeasers = Template.bind({});
  41. TwoTeasers.args = {
  42. maxItems: 2,
  43. };