fix(SW-1509): additional stories
This commit is contained in:
@@ -16,8 +16,6 @@ type Story = StoryObj<typeof Select>
|
|||||||
|
|
||||||
export const Default: Story = {
|
export const Default: Story = {
|
||||||
args: {
|
args: {
|
||||||
icon: 'star',
|
|
||||||
itemIcon: 'check',
|
|
||||||
items: ['Foo', 'Bar', 'Baz'],
|
items: ['Foo', 'Bar', 'Baz'],
|
||||||
label: 'Select an item',
|
label: 'Select an item',
|
||||||
name: 'foo',
|
name: 'foo',
|
||||||
@@ -26,8 +24,6 @@ export const Default: Story = {
|
|||||||
|
|
||||||
export const ObjectItem: Story = {
|
export const ObjectItem: Story = {
|
||||||
args: {
|
args: {
|
||||||
icon: 'star',
|
|
||||||
itemIcon: 'check',
|
|
||||||
items: [
|
items: [
|
||||||
{ label: 'Foo', value: 'foo' },
|
{ label: 'Foo', value: 'foo' },
|
||||||
{ label: 'Bar', value: 'bar' },
|
{ label: 'Bar', value: 'bar' },
|
||||||
@@ -38,13 +34,21 @@ export const ObjectItem: Story = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Filtering: Story = {
|
export const Icons: Story = {
|
||||||
args: {
|
args: {
|
||||||
icon: 'star',
|
icon: 'star',
|
||||||
itemIcon: 'check',
|
itemIcon: 'check',
|
||||||
items: ['Foo', 'Bar', 'Baz'],
|
items: ['Foo', 'Bar', 'Baz'],
|
||||||
label: 'Select an item',
|
label: 'Select an item',
|
||||||
name: 'foo',
|
name: 'foo',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Filtering: Story = {
|
||||||
|
args: {
|
||||||
|
items: ['Foo', 'Bar', 'Baz'],
|
||||||
|
label: 'Select an item',
|
||||||
|
name: 'foo',
|
||||||
enableFiltering: true,
|
enableFiltering: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user