Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

31 рядки
631 B

  1. import {createGallery} from "./GalleryComponent";
  2. export default {
  3. title: 'Components/Gallery',
  4. argTypes: {
  5. galleryType: {
  6. name: 'Galerie-Typ',
  7. control: {type: 'select'},
  8. options: ['grid', 'masonry', 'first-image'],
  9. },
  10. }
  11. }
  12. const Template = ({...args}) => {
  13. return createGallery({...args});
  14. };
  15. export const StandardGallery = Template.bind({});
  16. StandardGallery.args = {
  17. galleryType: 'first-image',
  18. }
  19. export const GridGallery = Template.bind({});
  20. GridGallery.args = {
  21. galleryType: 'grid',
  22. }
  23. export const MasonryGallery = Template.bind({});
  24. MasonryGallery.args = {
  25. galleryType: 'masonry',
  26. }