chore: ajout de stories pour Select et SearchableSelectField
parent
2597420cb4
commit
5cdcfb3920
|
@ -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: {},
|
||||
}
|
|
@ -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: {},
|
||||
}
|
Loading…
Reference in New Issue