Create SyntaxHighlighter.stories.tsx

This commit is contained in:
Hristo Nedelkov 2023-09-07 11:54:31 +03:00
parent 464afb44a9
commit 7129e9678f
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import type { Meta, StoryObj } from '@storybook/react'
import SyntaxHighlighter from './SyntaxHighlighter'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta = {
title: 'ValidatorOnboarding/SyntaxHighlighter',
component: SyntaxHighlighter,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
decorators: [withRouter()],
} satisfies Meta<typeof SyntaxHighlighter>
export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {
args: { rows: ['yarn', 'yarn build', 'yarn dev', 'house'] },
}