feat: create story for markdown link
This commit is contained in:
parent
d87fb2f450
commit
4dfff15c89
|
@ -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',
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue