Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

34 wiersze
813 B

  1. import {createBlockquote} from "./BlockquoteComponent";
  2. export default {
  3. title: 'Atoms/Blockquote',
  4. args: {
  5. quote: ['Ein Unternehmen zu gründen, ähnelt dem Kuchenbacken: Du brauchst alle nötigen Zutaten und jede einzelne davon in der genau passenden Menge.'],
  6. author: 'Max Mustermann, Unternehmer',
  7. type: 'regular',
  8. },
  9. argTypes: {
  10. quote: {
  11. name: 'Zitat',
  12. },
  13. author: {
  14. name: 'Autor',
  15. },
  16. type: {
  17. name: 'Seiten-Typ',
  18. control: 'select',
  19. options: ['regular', 'magazine'],
  20. }
  21. }
  22. }
  23. const Template = ({...args}) => {
  24. return createBlockquote({...args});
  25. }
  26. export const RegularBlockquote = Template.bind({});
  27. RegularBlockquote.args = {};
  28. export const MagazineBlockquote = Template.bind({});
  29. MagazineBlockquote.args = {
  30. type: 'magazine',
  31. };