Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

28 řádky
479 B

  1. import {createLabel} from "./LabelComponent";
  2. export default {
  3. title: 'Atoms/Label',
  4. args: {
  5. text: 'Benutzername',
  6. forAttribute: 'name',
  7. isRequired: false,
  8. },
  9. argTypes: {
  10. text: {
  11. name: 'Label-Text',
  12. },
  13. forAttribute: {
  14. name: 'For-Attribute',
  15. },
  16. isRequired: {
  17. name: 'Pflichtfeld',
  18. },
  19. }
  20. }
  21. const Template = ({...args}) => {
  22. return createLabel({...args});
  23. };
  24. export const Label = Template.bind({});
  25. Label.args = {};