diff --git a/packages/design-system/lib/components/Select/Select.stories.tsx b/packages/design-system/lib/components/Select/Select.stories.tsx
index a04fb7e75..daf9e067a 100644
--- a/packages/design-system/lib/components/Select/Select.stories.tsx
+++ b/packages/design-system/lib/components/Select/Select.stories.tsx
@@ -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,
+ },
+}
diff --git a/packages/design-system/lib/components/Select/Select.tsx b/packages/design-system/lib/components/Select/Select.tsx
index 343c07f54..299d542de 100644
--- a/packages/design-system/lib/components/Select/Select.tsx
+++ b/packages/design-system/lib/components/Select/Select.tsx
@@ -5,14 +5,17 @@ import {
ListBox,
Button,
} from 'react-aria-components'
-import { Typography } from '../Typography'
+import { cx } from 'class-variance-authority'
-import styles from './select.module.css'
import { MaterialIcon } from '../Icons/MaterialIcon'
+import { Typography } from '../Typography'
import { SelectItem } from './SelectItem'
+import { SelectFilter } from './SelectFilter'
import type { SelectProps } from './types'
+import styles from './select.module.css'
+
export function Select({
name,
label,
@@ -21,7 +24,21 @@ export function Select({
isDisabled,
icon,
itemIcon,
+ enableFiltering,
}: SelectProps) {
+ if (enableFiltering) {
+ return (
+
+ )
+ }
const iconColor = isDisabled ? 'Icon/Interactive/Disabled' : 'Icon/Default'
return (
@@ -32,7 +49,7 @@ export function Select({
isRequired={isRequired}
isDisabled={isDisabled}
>
-