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.
 
 
 
 

42 lines
967 B

  1. import {createSearchResults} from "./SearchResultsComponent";
  2. export default {
  3. title: 'Components/Search Results',
  4. args: {
  5. type: 'no-border',
  6. },
  7. argTypes: {
  8. type: {
  9. name: 'Ergebnis Typ',
  10. control: 'select',
  11. options: ['no-border', 'downloads', 'events'],
  12. defaultValue: 'no-border',
  13. },
  14. },
  15. decorators: [
  16. (Story) => `<div class="search-results">${Story().outerHTML || Story()}</div>`,
  17. ],
  18. }
  19. const Template = ({...args}) => {
  20. return createSearchResults({...args});
  21. }
  22. export const SimpleSearchResults = Template.bind({});
  23. SimpleSearchResults.args = {
  24. type: 'no-border',
  25. };
  26. export const DownloadSearchResults = Template.bind({});
  27. DownloadSearchResults.args = {
  28. type: 'downloads',
  29. };
  30. export const EventSearchResults = Template.bind({});
  31. EventSearchResults.args = {
  32. type: 'events',
  33. };
  34. export const EventSearchResultsExtended = Template.bind({});
  35. EventSearchResultsExtended.args = {
  36. type: 'events-extended',
  37. };