From 163f9dc0fe436b708de4e59999e87005c6685a0f Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 1 Apr 2022 17:11:25 +0200
Subject: chore: add a social link component

---
 src/components/atoms/links/social-link.stories.tsx | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 src/components/atoms/links/social-link.stories.tsx

(limited to 'src/components/atoms/links/social-link.stories.tsx')

diff --git a/src/components/atoms/links/social-link.stories.tsx b/src/components/atoms/links/social-link.stories.tsx
new file mode 100644
index 0000000..bd9a364
--- /dev/null
+++ b/src/components/atoms/links/social-link.stories.tsx
@@ -0,0 +1,40 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import SocialLinkComponent from './social-link';
+
+export default {
+  title: 'Atoms/Links',
+  component: SocialLinkComponent,
+  argTypes: {
+    name: {
+      control: {
+        type: 'select',
+      },
+      description: 'Social website name.',
+      options: ['Github', 'Gitlab', 'LinkedIn', 'Twitter'],
+      type: {
+        name: 'string',
+        required: true,
+      },
+    },
+    url: {
+      control: {
+        type: null,
+      },
+      description: 'Social profile url.',
+      type: {
+        name: 'string',
+        required: true,
+      },
+    },
+  },
+} as ComponentMeta<typeof SocialLinkComponent>;
+
+const Template: ComponentStory<typeof SocialLinkComponent> = (args) => (
+  <SocialLinkComponent {...args} />
+);
+
+export const SocialLink = Template.bind({});
+SocialLink.args = {
+  name: 'Github',
+  url: '#',
+};
-- 
cgit v1.2.3

