You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.2 KiB

  1. import {createInfobox} from "./InfoboxComponent";
  2. export default {
  3. title: 'Components/Infobox',
  4. argTypes: {
  5. type: {
  6. name: 'Box-Stil',
  7. control: {type: 'select'},
  8. options: ['regular', 'success', 'warning', 'error'],
  9. defaultValue: 'regular',
  10. },
  11. content: {
  12. name: 'Inhalt (HTML)',
  13. control: {type: 'text'},
  14. defaultValue: '<p><strong>Infobox: </strong>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci deserunt non quam rem, quae in <a href="#">porro sint veritatis</a> hic, quas dignissimos debitis sequi repudiandae ipsum dolorem placeat harum blanditiis. Vero.</p>'
  15. }
  16. }
  17. }
  18. const Template = ({...args}) => {
  19. return createInfobox({...args});
  20. };
  21. export const Infobox = Template.bind({});
  22. Infobox.args = {};
  23. export const Full = Template.bind({});
  24. Full.args = {
  25. full: true,
  26. };
  27. export const Secondary = Template.bind({});
  28. Secondary.args = {
  29. type: 'secondary',
  30. full: true,
  31. };
  32. // export const Warning = Template.bind({});
  33. // Warning.args = {
  34. // type: 'warning',
  35. // };
  36. //
  37. // export const Error = Template.bind({});
  38. // Error.args = {
  39. // type: 'error',
  40. // };
  41. //
  42. // export const Success = Template.bind({});
  43. // Success.args = {
  44. // type: 'success',
  45. // };