feat(SW-1509): enable filtering select
This commit is contained in:
@@ -19,8 +19,32 @@ export const Default: Story = {
|
||||
icon: 'star',
|
||||
itemIcon: 'check',
|
||||
items: ['Foo', 'Bar', 'Baz'],
|
||||
// items: new Array(30).fill(null).map((_, idx) => idx),
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
},
|
||||
}
|
||||
|
||||
export const ObjectItem: Story = {
|
||||
args: {
|
||||
icon: 'star',
|
||||
itemIcon: 'check',
|
||||
items: [
|
||||
{ label: 'Foo', value: 'foo' },
|
||||
{ label: 'Bar', value: 'bar' },
|
||||
{ label: 'Baz', value: 'baz' },
|
||||
],
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
},
|
||||
}
|
||||
|
||||
export const Filtering: Story = {
|
||||
args: {
|
||||
icon: 'star',
|
||||
itemIcon: 'check',
|
||||
items: ['Foo', 'Bar', 'Baz'],
|
||||
label: 'Select an item',
|
||||
name: 'foo',
|
||||
enableFiltering: true,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user