aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/social-media.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/widgets/social-media.stories.tsx')
-rw-r--r--src/components/organisms/widgets/social-media.stories.tsx61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/components/organisms/widgets/social-media.stories.tsx b/src/components/organisms/widgets/social-media.stories.tsx
new file mode 100644
index 0000000..6c9de4d
--- /dev/null
+++ b/src/components/organisms/widgets/social-media.stories.tsx
@@ -0,0 +1,61 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import SocialMediaWidget, { Media } from './social-media';
+
+/**
+ * SocialMedia - Storybook Meta
+ */
+export default {
+ title: 'Organisms/Widgets',
+ component: SocialMediaWidget,
+ argTypes: {
+ level: {
+ control: {
+ type: 'number',
+ min: 1,
+ max: 6,
+ },
+ description: 'The heading level.',
+ type: {
+ name: 'number',
+ required: true,
+ },
+ },
+ media: {
+ description: 'The links data.',
+ type: {
+ name: 'object',
+ required: true,
+ value: {},
+ },
+ },
+ title: {
+ control: {
+ type: 'text',
+ },
+ description: 'The widget title.',
+ type: {
+ name: 'string',
+ required: true,
+ },
+ },
+ },
+} as ComponentMeta<typeof SocialMediaWidget>;
+
+const Template: ComponentStory<typeof SocialMediaWidget> = (args) => (
+ <SocialMediaWidget {...args} />
+);
+
+const media: Media[] = [
+ { name: 'Github', url: '#' },
+ { name: 'LinkedIn', url: '#' },
+];
+
+/**
+ * Widgets Stories - Social media
+ */
+export const SocialMedia = Template.bind({});
+SocialMedia.args = {
+ media,
+ title: 'Follow me',
+ level: 2,
+};