LoadingSpinner.stories.jsx 555 B

1234567891011121314151617181920212223242526
  1. import React from "react";
  2. import {LoadingSpinner} from "./LoadingSpinner";
  3. export default {
  4. component: LoadingSpinner,
  5. title: 'Example/LoadingSpinner',
  6. // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
  7. argTypes: {
  8. backgroundColor: {control: 'color'},
  9. },
  10. };
  11. const Template = (args) => <LoadingSpinner {...args} />;
  12. export const Basic = Template.bind({});
  13. Basic.args = {
  14. isLoading: true,
  15. }
  16. export const WithText = Template.bind({});
  17. WithText.args = {
  18. isLoading: true,
  19. text: 'Loading...',
  20. }