From 4dfff15c8981a1d2ef5187d7416d9d154e1570ff Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 26 Oct 2023 08:47:45 +0300 Subject: [PATCH] feat: create story for markdown link --- .../General/Markdown/MarkdownLink.stories.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/components/General/Markdown/MarkdownLink.stories.tsx diff --git a/src/components/General/Markdown/MarkdownLink.stories.tsx b/src/components/General/Markdown/MarkdownLink.stories.tsx new file mode 100644 index 00000000..575a255c --- /dev/null +++ b/src/components/General/Markdown/MarkdownLink.stories.tsx @@ -0,0 +1,24 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' + +import MarkdownLink from './MarkdownLink' + +const meta = { + title: 'General/MarkdownLink', + component: MarkdownLink, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], + decorators: [withRouter()], +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Default: Story = { + args: { + href: '/', + children: 'MarkdownLink', + }, +}