feat(SW-1509): new select component in design-system
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import 'react-material-symbols/rounded'
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { Select } from './Select'
|
||||
|
||||
const meta: Meta<typeof Select> = {
|
||||
title: 'Components/Select',
|
||||
component: Select,
|
||||
argTypes: {},
|
||||
}
|
||||
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof Select>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
icon: 'star',
|
||||
itemIcon: 'check',
|
||||
items: ['Foo', 'Bar', 'Baz'],
|
||||
// items: new Array(30).fill(null).map((_, idx) => idx),
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user