feat: create story for markdown link

This commit is contained in:
RadoslavDimchev 2023-10-26 08:47:45 +03:00
parent d87fb2f450
commit 4dfff15c89
1 changed files with 24 additions and 0 deletions

View File

@ -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<typeof MarkdownLink>
export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {
args: {
href: '/',
children: 'MarkdownLink',
},
}