25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
723 B

  1. import {createInputSelect} from "./InputSelectComponent";
  2. import {InputSelectData} from "./InputSelectData";
  3. export default {
  4. title: 'Atoms/Input Select',
  5. args: {
  6. options: InputSelectData,
  7. selected: -1,
  8. id: 'field-name',
  9. name: 'field-name',
  10. placeholder: 'Bitte wählen',
  11. },
  12. argTypes: {
  13. options: {
  14. name: 'Optionen',
  15. },
  16. selected: {
  17. name: 'Vorausgewählt (-1 = keine Auswahl)',
  18. },
  19. id: {
  20. name: 'ID',
  21. },
  22. name: {
  23. name: 'Name-Attribut',
  24. },
  25. placeholder: {
  26. name: 'Platzhalter',
  27. },
  28. }
  29. }
  30. const Template = ({...args}) => {
  31. return createInputSelect({...args});
  32. };
  33. export const InputSelect = Template.bind({});
  34. InputSelect.args = {};