Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

46 строки
998 B

  1. import {createArtwork} from "./ArtworkComponent";
  2. export default {
  3. title: 'Components/Artwork',
  4. parameters: {
  5. layout: 'fullscreen',
  6. },
  7. argTypes: {
  8. type: {
  9. name: 'Artwork-Typ',
  10. control: {type: 'select'},
  11. options: ['artwork', 'artwork-image', 'artwork-background-image', 'artwork-both-sides'],
  12. defaultValue: 'artwork',
  13. },
  14. image: {
  15. name: 'Bild',
  16. control: {type: 'select'},
  17. options: ['Hamburg', 'Berlin', 'Team'],
  18. defaultValue: 'Berlin',
  19. },
  20. }
  21. }
  22. const Template = ({...args}) => {
  23. return createArtwork({...args});
  24. };
  25. export const Artwork = Template.bind({});
  26. Artwork.args = {
  27. type: 'artwork',
  28. };
  29. export const ImageArtwork = Template.bind({});
  30. ImageArtwork.args = {
  31. type: 'artwork-image',
  32. };
  33. export const BackgroundImageArtwork = Template.bind({});
  34. BackgroundImageArtwork.args = {
  35. type: 'artwork-background-image',
  36. };
  37. export const BothSides = Template.bind({});
  38. BothSides.args = {
  39. type: 'artwork-both-sides',
  40. };