From e29e145b053a5b1f338cef8a0721e185e955cdc2 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 4 Apr 2022 11:53:44 +0200
Subject: chore: add a Spinner component

---
 src/components/atoms/loaders/spinner.stories.tsx | 28 ++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/components/atoms/loaders/spinner.stories.tsx

(limited to 'src/components/atoms/loaders/spinner.stories.tsx')

diff --git a/src/components/atoms/loaders/spinner.stories.tsx b/src/components/atoms/loaders/spinner.stories.tsx
new file mode 100644
index 0000000..86c316e
--- /dev/null
+++ b/src/components/atoms/loaders/spinner.stories.tsx
@@ -0,0 +1,28 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import { IntlProvider } from 'react-intl';
+import SpinnerComponent from './spinner';
+
+export default {
+  title: 'Atoms/Loaders',
+  component: SpinnerComponent,
+  argTypes: {
+    message: {
+      control: {
+        type: 'text',
+      },
+      description: 'Loading message.',
+      type: {
+        name: 'string',
+        required: false,
+      },
+    },
+  },
+} as ComponentMeta<typeof SpinnerComponent>;
+
+const Template: ComponentStory<typeof SpinnerComponent> = (args) => (
+  <IntlProvider locale="en">
+    <SpinnerComponent {...args} />
+  </IntlProvider>
+);
+
+export const Spinner = Template.bind({});
-- 
cgit v1.2.3

