# ListboxMultipleProps (@salmonui/dropdowns/listbox)

> The ListboxMultipleProps interface of @salmonui/dropdowns/listbox: Multiple selection.

Canonical: https://salmonui.dev/docs/reference/dropdowns/listbox/ListboxMultipleProps

```ts
import type { ListboxMultipleProps } from '@salmonui/dropdowns/listbox';
```

Entry index: https://salmonui.dev/docs/reference/dropdowns/listbox (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/dropdowns/listbox.md).

## Reference

Kind: interface

```ts
interface ListboxMultipleProps<T> extends ListboxBaseProps<T> {
    readonly multiple: true;
    readonly value?: readonly ListboxKey[];
    readonly defaultValue?: readonly ListboxKey[];
    readonly onValueChange?: (value: readonly ListboxKey[], event: ListboxValueChangeEvent<T>) => void;
}
```

Multiple selection.

Members (55):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple: true;` |  |  |
| `value` | `readonly value?: readonly ListboxKey[];` | optional |  |
| `defaultValue` | `readonly defaultValue?: readonly ListboxKey[];` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: readonly ListboxKey[], event: ListboxValueChangeEvent<T>) => void;` | optional |  |
| `data` | `data: ListboxDataSource<T> \| readonly T[];` | inherited | Items (an array, never copied), or a remote `@salmonui/data` source. |
| `getItemValue` | `getItemValue?: ((item: T) => ListboxKey);` | optional, inherited | Default: a primitive is its own value; objects read `value`. Keep accessors stable (module scope or `useCallback`). |
| `getItemLabel` | `getItemLabel?: ((item: T) => string);` | optional, inherited | Default: a primitive is its own label; objects read `label`. |
| `getItemGroup` | `getItemGroup?: ((item: T) => string \| null \| undefined);` | optional, inherited | Default: objects read `group`. Items of one group must be contiguous. |
| `getItemIcon` | `getItemIcon?: ((item: T) => ReactNode);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: T) => boolean);` | optional, inherited | Default: objects read `disabled`. Evaluated on render (reactive). |
| `layout` | `layout?: "grid" \| "list";` | optional, inherited | `'grid'`: the APG Grid pattern (`role="grid"`, rows of `columns` cells) for items holding their own controls, and tile galleries. Tab and the arrow keys reach the active cell's controls; selection does not follow focus. No group headers or reordering. Default `'list'`. |
| `columns` | `columns?: number;` | optional, inherited | Items per row with `layout="grid"`. Default 1. |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited | Marker of selected options. Default `'check'`. |
| `indicatorPosition` | `indicatorPosition?: "end" \| "start";` | optional, inherited | Side of the marker: `'start'` (default) or `'end'`, logical so it mirrors in RTL. |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited | Tri-state "select all" checkbox above the list (`multiple`). |
| `maxSelected` | `maxSelected?: number;` | optional, inherited | Most values `multiple` may hold; further options become unavailable. |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search field above the list filters it. |
| `searchOperator` | `searchOperator?: ListboxSearchOperator<T>;` | optional, inherited | Default `'startsWith'`. |
| `matchCase` | `matchCase?: boolean;` | optional, inherited |  |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited |  |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((event: { readonly text: string; }) => void);` | optional, inherited | Fires when the search text changes. |
| `debounce` | `debounce?: number;` | optional, inherited | Remote search debounce in ms. Default 300; local data filters on every keystroke. |
| `minSearchLength` | `minSearchLength?: number;` | optional, inherited | Remote: searches shorter than this send no request. |
| `maxResults` | `maxResults?: number;` | optional, inherited | Caps the number of listed items. |
| `query` | `query?: ListboxQuery;` | optional, inherited | Remote: base filters and sort merged into every read. |
| `searchFields` | `searchFields?: readonly string[];` | optional, inherited | Remote: fields the search text runs over. Default `['label']`. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Virtual list (fixed item height). Default: on above 100 items. |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | List height in items. Default 8. |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited | Mark the search text in labels (`<mark>`). |
| `renderItem` | `renderItem?: ((state: ListboxItemState<T>) => ReactNode);` | optional, inherited |  |
| `renderGroupHeader` | `renderGroupHeader?: ((state: { readonly group: string; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((state: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((state: { readonly error: unknown; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: (() => ReactNode);` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: T, state: { readonly selected: boolean; readonly disabled: boolean; }) => ListboxItemProps \| undefined);` | optional, inherited |  |
| `onLoadError` | `onLoadError?: ((error: unknown) => void);` | optional, inherited | Remote: called when a read fails. |
| `loading` | `loading?: boolean;` | optional, inherited | Forces the busy state (`aria-busy`); set automatically while a remote read is pending. |
| `name` | `name?: string;` | optional, inherited | Form field name: renders a hidden native `<select>` that submits the value. |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `reorderable` | `reorderable?: boolean;` | optional, inherited | Alt+Up / Alt+Down and drag within the list fire `onReorder`. |
| `onReorder` | `onReorder?: ((event: ListboxReorderEvent<T>) => void);` | optional, inherited |  |
| `dragGroup` | `dragGroup?: string;` | optional, inherited | Lists with the same group accept each other's items by drag and drop. |
| `onItemDragStart` | `onItemDragStart?: ((event: ListboxDragStartEvent<T>) => void);` | optional, inherited |  |
| `onItemDrag` | `onItemDrag?: ((event: ListboxDragEvent) => void);` | optional, inherited |  |
| `onItemDrop` | `onItemDrop?: ((event: ListboxDropEvent<T>) => void);` | optional, inherited |  |
| `localeText` | `localeText?: Partial<ListboxLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<ListboxPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<ListboxPart, CSSProperties>>;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLDivElement>;` | optional, inherited | The focusable `role="listbox"` (or `role="grid"` with `layout="grid"`) element. |
