summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/links/social-link.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-01 17:11:25 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-01 17:22:39 +0200
commit163f9dc0fe436b708de4e59999e87005c6685a0f (patch)
tree34f25b014b606f88976710e622cda7eb38e2dd49 /src/components/atoms/links/social-link.stories.tsx
parent2385ec8ca0963306f6b87564467301cb5a2a1834 (diff)
chore: add a social link component
Diffstat (limited to 'src/components/atoms/links/social-link.stories.tsx')
-rw-r--r--src/components/atoms/links/social-link.stories.tsx40
1 files changed, 40 insertions, 0 deletions
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: '#',
+};