chore: ajout de stories pour Select et SearchableSelectField

pull/3215/head
Alice Dahan 2024-11-04 15:52:12 +01:00 committed by liliced
parent 2597420cb4
commit 5cdcfb3920
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import { Meta, StoryObj } from '@storybook/react'
import { SearchableSelectField } from './SearchableSelectField'
const meta: Meta<typeof SearchableSelectField> = {
component: SearchableSelectField,
}
export default meta
type Story = StoryObj<typeof SearchableSelectField>
export const Basic: Story = {
render: () => (
<SearchableSelectField
selectedValue={<div>une réponse</div>}
></SearchableSelectField>
),
args: {},
}

View File

@ -0,0 +1,22 @@
import { Meta, StoryObj } from '@storybook/react'
import { Item } from '@/design-system'
import { Select } from '.'
const meta: Meta<typeof Select> = {
component: Select,
}
export default meta
type Story = StoryObj<typeof Select>
export const Basic: Story = {
render: () => (
<Select value={2}>
<Item textValue="Salut">Ça va ?</Item>
</Select>
),
args: {},
}