-
- {state.selectedItems?.map((item, i) => (
- {
- if (state.selectionManager.isSelected(item.key)) {
- state.selectionManager.toggleSelection(item.key);
- }
- }}
- >
- {item.textValue}
-
- ))}
-
-
- {t.format('more', { count: hiddenCount })}
-
-
- );
-}
diff --git a/packages/components/src/components/SelectNext/components/TagGroup/index.ts b/packages/components/src/components/SelectNext/components/TagGroup/index.ts
deleted file mode 100644
index 4aac8bce4..000000000
--- a/packages/components/src/components/SelectNext/components/TagGroup/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './TagGroup';
diff --git a/packages/components/src/components/SelectNext/components/TagGroup/utils.ts b/packages/components/src/components/SelectNext/components/TagGroup/utils.ts
deleted file mode 100644
index 088c29de4..000000000
--- a/packages/components/src/components/SelectNext/components/TagGroup/utils.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const getHiddenCount = (map: boolean[]) =>
- map.filter((item) => !item).length;
diff --git a/packages/components/src/components/SelectNext/components/index.ts b/packages/components/src/components/SelectNext/components/index.ts
index b1d9be95a..f2c1c01cc 100644
--- a/packages/components/src/components/SelectNext/components/index.ts
+++ b/packages/components/src/components/SelectNext/components/index.ts
@@ -1,5 +1,3 @@
export * from './SelectList';
-export * from './Tag';
export * from './SelectOption';
export * from './SelectSection';
-export * from './TagGroup';
diff --git a/packages/components/src/components/SelectNext/types.ts b/packages/components/src/components/SelectNext/types.ts
index 8c306ce33..116c3a068 100644
--- a/packages/components/src/components/SelectNext/types.ts
+++ b/packages/components/src/components/SelectNext/types.ts
@@ -6,7 +6,7 @@ import type {
Ref,
} from 'react';
-import type { ExtendableProps } from '@koobiq/react-core';
+import type { ExtendableProps, Node } from '@koobiq/react-core';
import type { AriaSelectProps, SelectState } from '@koobiq/react-primitives';
import type { SelectionMode } from '@react-types/select';
@@ -27,6 +27,7 @@ import {
import type { IconButtonProps } from '../IconButton';
import type { PopoverProps } from '../Popover';
import type { SearchInputProps } from '../SearchInput';
+import type { TagProps } from '../Tag';
import type { SelectListProps } from './components';
@@ -44,6 +45,8 @@ export type SelectNextPropLabelPlacement = FormFieldPropLabelPlacement;
export const selectNextPropLabelAlign = formFieldPropLabelAlign;
export type SelectNextPropLabelAlign = FormFieldPropLabelAlign;
+export type SelectNextTagProps = TagProps;
+
export type SelectNextProps<
T extends object,
M extends SelectionMode = 'single',
@@ -57,6 +60,8 @@ export type SelectNextProps<
* @default 'responsive'
*/
selectedTagsOverflow?: SelectNextPropSelectedTagsOverflow;
+ /** Custom renderer for selected tags in multiple selection mode. */
+ renderTag?: (item: Node