feat(SW-1509): enable filtering select

This commit is contained in:
Christian Andolf
2025-04-08 15:59:58 +02:00
parent 77e4e9d203
commit bc7cec215c
6 changed files with 213 additions and 25 deletions

View File

@@ -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,
},
}