Skip to content

Commit 9e49134

Browse files
committed
Merge branch 'main' of github.com:marklearst/hailstorm
2 parents 4316170 + c261832 commit 9e49134

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/components/form-field/listbox/listbox.stories.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
33
import { FC, useState } from 'react'
44
import { FormField } from '../form-field'
55

6-
const meta: Meta<typeof FormField.Listbox> = {
6+
type ListboxStoryArgs = {
7+
label: string
8+
description: string
9+
placeholder: string
10+
width: number
11+
disabled: boolean
12+
}
13+
14+
const meta: Meta<ListboxStoryArgs> = {
715
title: 'Input/Listbox',
8-
component: FormField.Listbox,
916
args: {
1017
label: 'Label',
1118
description: 'Description',
@@ -24,7 +31,7 @@ const meta: Meta<typeof FormField.Listbox> = {
2431

2532
export default meta
2633

27-
type Story = StoryObj<typeof FormField.Listbox>
34+
type Story = StoryObj<ListboxStoryArgs>
2835

2936
interface Person {
3037
id: number

0 commit comments

Comments
 (0)