feat: create story for port input with examples

This commit is contained in:
RadoslavDimchev 2024-01-05 14:41:50 +02:00
parent bbf62ce59d
commit 0ad30aa09a
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import PortInput from './PortInput'
const meta = {
title: 'Pair Device/PortInput',
component: PortInput,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
decorators: [withRouter],
} satisfies Meta<typeof PortInput>
export default meta
type Story = StoryObj<typeof meta>
export const VC: Story = {
args: {
port: '9000',
portType: 'VC',
},
}
export const Beacon: Story = {
args: {
port: '5052',
portType: 'Beacon',
},
}