-
-
- {data.slice(0, visibleCount).map(item => (
-
- {typeof item.children === 'string' ? item.children : item.value}
-
- ))}
- {data.length > visibleCount && (
- +{data.length - visibleCount}
- )}
-
-
+ {data.slice(0, visibleCount).map(item => (
+
+ {typeof item.children === 'string' ? item.children : item.value}
+
+ ))}
+ {data.length > visibleCount &&
+{data.length - visibleCount}}
);
-});
+};
diff --git a/packages/raystack/components/select/select-root.tsx b/packages/raystack/components/select/select-root.tsx
index 62a058337..120f64a9f 100644
--- a/packages/raystack/components/select/select-root.tsx
+++ b/packages/raystack/components/select/select-root.tsx
@@ -1,14 +1,15 @@
'use client';
-import { ComboboxProvider } from '@ariakit/react';
-import { Select as SelectPrimitive } from 'radix-ui';
+import {
+ Combobox as ComboboxPrimitive,
+ Select as SelectPrimitive
+} from '@base-ui/react';
import {
createContext,
+ ReactNode,
useCallback,
useContext,
- useId,
useMemo,
- useRef,
useState
} from 'react';
import { ItemType } from './types';
@@ -27,8 +28,7 @@ interface SelectContextValue extends CommonProps {
unregisterItem: (value: string) => void;
multiple: boolean;
items: Record