Skip to main content

Overview

import CustomMultiselect from "@components/CustomMultiselect";

warning

CustomMultiselect is functional only in modals. An Issue has been raised to Tag Component.

Description

The CustomMultiselect component is a customizable multi-select dropdown built on top of the @tag/tag-components-react-v4 library MultiSelect component. It supports features like:

  • Select All Button: Allows users to select or deselect all items at once.
  • Add Item Button: Enables users to add new items to the list dynamically.

This component is ideal for scenarios where users need to select multiple items from a large dataset or dynamically add new items to the list.

Props

Prop NameTypeDefault ValueDescription
withAllButtonbooleanfalseEnables the "Select All" button in the dropdown header.
addButtonTextstring"Add Item"Text displayed on the "Add Item" button.
withAddItembooleanfalseEnables the "Add Item" button in the dropdown footer.
onAddItemfunction-Callback function triggered when a new item is added.

Additional Props

The CustomMultiselect component accepts additional props that are passed directly to the MultiSelect component from @tag/tag-components-react-v4.