Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

28 rindas
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 = {};