Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

34 lignes
676 B

  1. import {createContact} from "./ContactComponent";
  2. import {ContactData} from "./ContactData";
  3. export default {
  4. title: 'Components/Contact',
  5. argTypes: {
  6. headline: {
  7. name: 'Überschrift',
  8. control: 'text',
  9. defaultValue: 'Kontakt',
  10. },
  11. contactCount: {
  12. name: 'Anzahl Kontakte',
  13. control: {
  14. type: 'range',
  15. min: 1,
  16. max: 3,
  17. },
  18. defaultValue: 2,
  19. },
  20. contacts: {
  21. name: 'Kontakte',
  22. control: {type: 'object'},
  23. defaultValue: ContactData,
  24. },
  25. }
  26. }
  27. const Template = ({...args}) => {
  28. return createContact({...args});
  29. };
  30. export const Contact = Template.bind({});
  31. Contact.args = {};