# @salmonui/dropdowns/select API reference

> 21 exported symbols of @salmonui/dropdowns/select: 1 component, 10 interfaces, 9 types and 1 constant.

Canonical: https://salmonui.dev/docs/reference/dropdowns/select

```ts
import { … } from '@salmonui/dropdowns/select';
```

## Components

### Select

Kind: component

Page: https://salmonui.dev/docs/reference/dropdowns/select/Select

```ts
function Select<Item = unknown>(props: SelectProps<Item>): ReactNode;
```

Select: the APG select-only combobox. `label`, `description` and
`errorMessage` (shown while `invalid`) render around the trigger like on
`TextField` and are wired through `aria-labelledby` / `aria-describedby`.

## Interfaces

### SelectChipRenderProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectChipRenderProps

```ts
interface DropdownChipRenderProps<Item> {
    readonly item: Item;
    readonly label: string;
    readonly remove: () => void;
    readonly disabled: boolean;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `item` | `readonly item: Item;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `remove` | `readonly remove: () => void;` |  |  |
| `disabled` | `readonly disabled: boolean;` |  |  |

### SelectFieldProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectFieldProps

```ts
interface DropdownFieldProps {
    readonly label?: ReactNode;
    readonly description?: ReactNode;
    readonly errorMessage?: ReactNode;
    readonly invalid?: boolean | undefined;
}
```

Field parts of `Select` and `Combobox` (the `TextField` names): a visible
label, a description and an error message around the control, wired with
`aria-labelledby` / `aria-describedby` / `aria-errormessage`. Without any
of them the markup is the bare control.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label?: ReactNode;` | optional | Visible label above the control; names it through `aria-labelledby` (an explicit `aria-labelledby` prop wins). |
| `description` | `readonly description?: ReactNode;` | optional | Help text below the control, referenced by `aria-describedby`. |
| `errorMessage` | `readonly errorMessage?: ReactNode;` | optional | Error text below the control, shown while `invalid`. |
| `invalid` | `readonly invalid?: boolean \| undefined;` | optional | Marks the control invalid: `aria-invalid`, `data-invalid` and the visible `errorMessage`. |

### SelectItemRenderProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectItemRenderProps

```ts
interface DropdownItemRenderProps<Item> {
    readonly item: Item;
    readonly label: string;
    readonly selected: boolean;
    readonly active: boolean;
    readonly disabled: boolean;
    readonly matches: readonly (readonly [
        number,
        number
    ])[];
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `item` | `readonly item: Item;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `selected` | `readonly selected: boolean;` |  |  |
| `active` | `readonly active: boolean;` |  |  |
| `disabled` | `readonly disabled: boolean;` |  |  |
| `matches` | `readonly matches: readonly (readonly [     number,     number ])[];` |  | `[start, end)` offsets of the matched text in `label` (with `highlightMatches` or a search). |

### SelectLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectLocaleText

```ts
interface DropdownLocaleText {
    readonly noResults: string;
    readonly noData: string;
    readonly loading: string;
    readonly loadError: string;
    readonly retry: string;
    readonly selectAll: string;
    readonly deselectAll: string;
    readonly clear: string;
    readonly removeValue: (label: string) => string;
    readonly selectedCount: (count: number, plural: Intl.LDMLPluralRule) => string;
    readonly moreValues: (count: number) => string;
    readonly resultCount: (count: number, plural: Intl.LDMLPluralRule) => string;
    readonly limitReached: (max: number) => string;
    readonly search: string;
    readonly close: string;
    readonly toggle: string;
    readonly selectedValues: string;
    readonly create: (text: string) => string;
}
```

Static texts; every value has an exported default (`SELECT_DEFAULT_LOCALE_TEXT`).

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `noResults` | `readonly noResults: string;` |  |  |
| `noData` | `readonly noData: string;` |  |  |
| `loading` | `readonly loading: string;` |  |  |
| `loadError` | `readonly loadError: string;` |  |  |
| `retry` | `readonly retry: string;` |  |  |
| `selectAll` | `readonly selectAll: string;` |  |  |
| `deselectAll` | `readonly deselectAll: string;` |  |  |
| `clear` | `readonly clear: string;` |  |  |
| `removeValue` | `readonly removeValue: (label: string) => string;` |  |  |
| `selectedCount` | `readonly selectedCount: (count: number, plural: Intl.LDMLPluralRule) => string;` |  |  |
| `moreValues` | `readonly moreValues: (count: number) => string;` |  |  |
| `resultCount` | `readonly resultCount: (count: number, plural: Intl.LDMLPluralRule) => string;` |  |  |
| `limitReached` | `readonly limitReached: (max: number) => string;` |  |  |
| `search` | `readonly search: string;` |  |  |
| `close` | `readonly close: string;` |  |  |
| `toggle` | `readonly toggle: string;` |  |  |
| `selectedValues` | `readonly selectedValues: string;` |  |  |
| `create` | `readonly create: (text: string) => string;` |  |  |

### SelectMultipleProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectMultipleProps

```ts
interface SelectMultipleProps<Item> extends SelectOwnProps<Item> {
    readonly multiple: true;
    readonly value?: readonly DropdownValue[];
    readonly defaultValue?: readonly DropdownValue[];
    readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;
}
```

Members (72):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple: true;` |  |  |
| `value` | `readonly value?: readonly DropdownValue[];` | optional |  |
| `defaultValue` | `readonly defaultValue?: readonly DropdownValue[];` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;` | optional |  |
| `data` | `data: readonly Item[] \| RemoteSource<Item>;` | inherited | Items (objects or primitives) or an `@salmonui/data` source. |
| `getItemValue` | `getItemValue?: ((item: Item) => CollectionKey);` | optional, inherited |  |
| `getItemLabel` | `getItemLabel?: ((item: Item) => string);` | optional, inherited |  |
| `getItemGroup` | `getItemGroup?: ((item: Item) => string \| null \| undefined);` | optional, inherited |  |
| `getItemIcon` | `getItemIcon?: ((item: Item) => ReactNode);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: Item) => boolean);` | optional, inherited |  |
| `selectedItems` | `selectedItems?: readonly Item[];` | optional, inherited | Items of the current value that are not in loaded `data` (remote data, server labels). |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DropdownOpenChangeEvent) => void);` | optional, inherited |  |
| `searchOperator` | `searchOperator?: SearchOperator<Item>;` | optional, inherited |  |
| `matchCase` | `matchCase?: boolean;` | optional, inherited | Case-sensitive search. Default `false`. |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited | Diacritics-insensitive search. Default `false`. |
| `debounce` | `debounce?: number;` | optional, inherited | Remote search delay in ms (local data filters on every keystroke). Default 300. |
| `minSearchLength` | `minSearchLength?: number;` | optional, inherited |  |
| `maxResults` | `maxResults?: number;` | optional, inherited |  |
| `searchFields` | `searchFields?: readonly string[];` | optional, inherited | Fields searched by a remote source (`query.search.columnIds`); default every field. |
| `query` | `query?: RemoteQuery;` | optional, inherited | Base query merged into every remote read. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Windowed list; `true` by default above 100 items. |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | Popup height in items. Default 8. |
| `popupMode` | `popupMode?: "auto" \| "popover" \| "sheet";` | optional, inherited | `'popover'` (default) anchors the popup; `'sheet'` is a full-screen dialog; `'auto'` picks the sheet on coarse-pointer phones at open time. |
| `clearable` | `clearable?: boolean;` | optional, inherited |  |
| `placeholder` | `placeholder?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `autoFocus` | `autoFocus?: boolean;` | optional, inherited |  |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited |  |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited |  |
| `maxSelected` | `maxSelected?: number;` | optional, inherited |  |
| `groupSelection` | `groupSelection?: boolean;` | optional, inherited |  |
| `hideSelected` | `hideSelected?: boolean;` | optional, inherited |  |
| `closeOnSelect` | `closeOnSelect?: boolean;` | optional, inherited |  |
| `maxVisibleValues` | `maxVisibleValues?: number;` | optional, inherited |  |
| `valueSeparator` | `valueSeparator?: string;` | optional, inherited | Separator of `valueDisplay="text"`; default `Intl.ListFormat` of `locale`. |
| `locale` | `locale?: string;` | optional, inherited | BCP 47 locale for list and plural formatting. Default `'en-US'` (identical on server and client). |
| `renderItem` | `renderItem?: ((props: DropdownItemRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderValue` | `renderValue?: ((props: { readonly items: readonly Item[]; readonly labels: readonly string[]; }) => ReactNode);` | optional, inherited |  |
| `renderChip` | `renderChip?: ((props: DropdownChipRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderGroupHeader` | `renderGroupHeader?: ((props: { readonly group: string; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((props: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((props: { readonly error: unknown; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: (() => ReactNode);` | optional, inherited |  |
| `popupHeader` | `popupHeader?: ReactNode;` | optional, inherited |  |
| `popupFooter` | `popupFooter?: ReactNode;` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: Item) => DropdownPartProps \| undefined);` | optional, inherited |  |
| `getChipProps` | `getChipProps?: ((item: Item) => DropdownPartProps \| undefined);` | optional, inherited |  |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited | Marks the matched characters with `<mark>`. |
| `loading` | `loading?: boolean;` | optional, inherited | Forces the loading state (set automatically while a remote read is pending). |
| `onLoadError` | `onLoadError?: ((error: unknown) => void);` | optional, inherited |  |
| `size` | `size?: "lg" \| "md" \| "sm";` | optional, inherited | Control size: `'sm'` 24px, `'md'` 32px (default), `'lg'` 40px tall. |
| `localeText` | `localeText?: Partial<DropdownLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<DropdownPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<DropdownPart, CSSProperties>>;` | optional, inherited |  |
| `label` | `label?: ReactNode;` | optional, inherited | Visible label above the control; names it through `aria-labelledby` (an explicit `aria-labelledby` prop wins). |
| `description` | `description?: ReactNode;` | optional, inherited | Help text below the control, referenced by `aria-describedby`. |
| `errorMessage` | `errorMessage?: ReactNode;` | optional, inherited | Error text below the control, shown while `invalid`. |
| `invalid` | `invalid?: boolean;` | optional, inherited | Marks the control invalid: `aria-invalid`, `data-invalid` and the visible `errorMessage`. |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search input inside the popup filters the options. |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((text: string, event: DropdownSearchChangeEvent) => void);` | optional, inherited |  |
| `valueDisplay` | `valueDisplay?: "count" \| "text";` | optional, inherited | How the selected values of `multiple` show in the trigger: joined labels (default) or a count. Chips are a `Combobox multiple` display. |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The trigger `<button role="combobox">`. |

### SelectOpenChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectOpenChangeEvent

```ts
interface DropdownOpenChangeEvent {
    readonly source: DropdownEventSource;
    readonly reason: DropdownOpenChangeReason;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |
| `reason` | `readonly reason: DropdownOpenChangeReason;` |  |  |

### SelectPartProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectPartProps

```ts
interface DropdownPartProps {
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly [data: `data-${string}`]: string | number | boolean | undefined;
}
```

Pure per-item props merged onto the rendered option or chip (rendered items only).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |

### SelectSearchChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectSearchChangeEvent

```ts
interface DropdownSearchChangeEvent {
    readonly source: DropdownEventSource;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |

### SelectSingleProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectSingleProps

```ts
interface SelectSingleProps<Item> extends SelectOwnProps<Item> {
    readonly multiple?: false;
    readonly value?: DropdownValue | null;
    readonly defaultValue?: DropdownValue | null;
    readonly onValueChange?: (value: DropdownValue | null, event: DropdownValueChangeEvent<Item>) => void;
}
```

Members (72):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple?: false;` | optional |  |
| `value` | `readonly value?: DropdownValue \| null;` | optional | Selected value; `null` is a controlled empty selection. |
| `defaultValue` | `readonly defaultValue?: DropdownValue \| null;` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: DropdownValue \| null, event: DropdownValueChangeEvent<Item>) => void;` | optional |  |
| `data` | `data: readonly Item[] \| RemoteSource<Item>;` | inherited | Items (objects or primitives) or an `@salmonui/data` source. |
| `getItemValue` | `getItemValue?: ((item: Item) => CollectionKey);` | optional, inherited |  |
| `getItemLabel` | `getItemLabel?: ((item: Item) => string);` | optional, inherited |  |
| `getItemGroup` | `getItemGroup?: ((item: Item) => string \| null \| undefined);` | optional, inherited |  |
| `getItemIcon` | `getItemIcon?: ((item: Item) => ReactNode);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: Item) => boolean);` | optional, inherited |  |
| `selectedItems` | `selectedItems?: readonly Item[];` | optional, inherited | Items of the current value that are not in loaded `data` (remote data, server labels). |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DropdownOpenChangeEvent) => void);` | optional, inherited |  |
| `searchOperator` | `searchOperator?: SearchOperator<Item>;` | optional, inherited |  |
| `matchCase` | `matchCase?: boolean;` | optional, inherited | Case-sensitive search. Default `false`. |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited | Diacritics-insensitive search. Default `false`. |
| `debounce` | `debounce?: number;` | optional, inherited | Remote search delay in ms (local data filters on every keystroke). Default 300. |
| `minSearchLength` | `minSearchLength?: number;` | optional, inherited |  |
| `maxResults` | `maxResults?: number;` | optional, inherited |  |
| `searchFields` | `searchFields?: readonly string[];` | optional, inherited | Fields searched by a remote source (`query.search.columnIds`); default every field. |
| `query` | `query?: RemoteQuery;` | optional, inherited | Base query merged into every remote read. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Windowed list; `true` by default above 100 items. |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | Popup height in items. Default 8. |
| `popupMode` | `popupMode?: "auto" \| "popover" \| "sheet";` | optional, inherited | `'popover'` (default) anchors the popup; `'sheet'` is a full-screen dialog; `'auto'` picks the sheet on coarse-pointer phones at open time. |
| `clearable` | `clearable?: boolean;` | optional, inherited |  |
| `placeholder` | `placeholder?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `autoFocus` | `autoFocus?: boolean;` | optional, inherited |  |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited |  |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited |  |
| `maxSelected` | `maxSelected?: number;` | optional, inherited |  |
| `groupSelection` | `groupSelection?: boolean;` | optional, inherited |  |
| `hideSelected` | `hideSelected?: boolean;` | optional, inherited |  |
| `closeOnSelect` | `closeOnSelect?: boolean;` | optional, inherited |  |
| `maxVisibleValues` | `maxVisibleValues?: number;` | optional, inherited |  |
| `valueSeparator` | `valueSeparator?: string;` | optional, inherited | Separator of `valueDisplay="text"`; default `Intl.ListFormat` of `locale`. |
| `locale` | `locale?: string;` | optional, inherited | BCP 47 locale for list and plural formatting. Default `'en-US'` (identical on server and client). |
| `renderItem` | `renderItem?: ((props: DropdownItemRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderValue` | `renderValue?: ((props: { readonly items: readonly Item[]; readonly labels: readonly string[]; }) => ReactNode);` | optional, inherited |  |
| `renderChip` | `renderChip?: ((props: DropdownChipRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderGroupHeader` | `renderGroupHeader?: ((props: { readonly group: string; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((props: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((props: { readonly error: unknown; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: (() => ReactNode);` | optional, inherited |  |
| `popupHeader` | `popupHeader?: ReactNode;` | optional, inherited |  |
| `popupFooter` | `popupFooter?: ReactNode;` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: Item) => DropdownPartProps \| undefined);` | optional, inherited |  |
| `getChipProps` | `getChipProps?: ((item: Item) => DropdownPartProps \| undefined);` | optional, inherited |  |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited | Marks the matched characters with `<mark>`. |
| `loading` | `loading?: boolean;` | optional, inherited | Forces the loading state (set automatically while a remote read is pending). |
| `onLoadError` | `onLoadError?: ((error: unknown) => void);` | optional, inherited |  |
| `size` | `size?: "lg" \| "md" \| "sm";` | optional, inherited | Control size: `'sm'` 24px, `'md'` 32px (default), `'lg'` 40px tall. |
| `localeText` | `localeText?: Partial<DropdownLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<DropdownPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<DropdownPart, CSSProperties>>;` | optional, inherited |  |
| `label` | `label?: ReactNode;` | optional, inherited | Visible label above the control; names it through `aria-labelledby` (an explicit `aria-labelledby` prop wins). |
| `description` | `description?: ReactNode;` | optional, inherited | Help text below the control, referenced by `aria-describedby`. |
| `errorMessage` | `errorMessage?: ReactNode;` | optional, inherited | Error text below the control, shown while `invalid`. |
| `invalid` | `invalid?: boolean;` | optional, inherited | Marks the control invalid: `aria-invalid`, `data-invalid` and the visible `errorMessage`. |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search input inside the popup filters the options. |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((text: string, event: DropdownSearchChangeEvent) => void);` | optional, inherited |  |
| `valueDisplay` | `valueDisplay?: "count" \| "text";` | optional, inherited | How the selected values of `multiple` show in the trigger: joined labels (default) or a count. Chips are a `Combobox multiple` display. |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The trigger `<button role="combobox">`. |

### SelectValueChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectValueChangeEvent

```ts
interface DropdownValueChangeEvent<Item> {
    readonly source: DropdownEventSource;
    readonly reason: DropdownValueChangeReason;
    readonly previousValue: readonly DropdownValue[];
    readonly items: readonly Item[];
}
```

Second argument of `onValueChange`: frozen, read-only. `items` is materialized on first read.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |
| `reason` | `readonly reason: DropdownValueChangeReason;` |  |  |
| `previousValue` | `readonly previousValue: readonly DropdownValue[];` |  |  |
| `items` | `readonly items: readonly Item[];` |  | Items of the new value (loaded data, `selectedItems` or created items); computed on first read. |

## Types

### SelectEventSource

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectEventSource

```ts
type DropdownEventSource = 'pointer' | 'keyboard' | 'touch' | 'api';
```

How a change was made.

### SelectOpenChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectOpenChangeReason

```ts
type DropdownOpenChangeReason = 'trigger' | 'keyboard' | 'type' | 'select' | 'escape' | 'outside' | 'tab' | 'blur';
```

### SelectPart

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectPart

```ts
type DropdownPart = 'root' | 'trigger' | 'input' | 'value' | 'popup' | 'list' | 'option' | 'group' | 'chip' | 'search';
```

### SelectProps

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectProps

```ts
type SelectProps<Item = unknown> = SelectSingleProps<Item> | SelectMultipleProps<Item>;
```

### SelectQuery

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectQuery

```ts
type DropdownQuery = RemoteQuery;
```

Base query merged into every remote read (filters and sort of the `@salmonui/data` query model).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `filters` | `filters?: readonly FilterEntry[];` | optional, inherited |  |
| `sorting` | `sorting?: readonly SortDescriptor[];` | optional, inherited |  |

### SelectRemoteSource

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectRemoteSource

```ts
type RemoteSource<Item> = SharedRemoteSource<Item>;
```

A remote `data`: any `@salmonui/data` source (the structural `read` of `DataSource`).

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `read` | `read: (request: DataSourceRequest) => DataSourceResult<Item> \| Promise<DataSourceResult<Item>>;` | inherited |  |

### SelectSearchOperator

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectSearchOperator

```ts
type SearchOperator<Item = unknown> = 'startsWith' | 'contains' | 'endsWith' | ((item: Item, text: string) => boolean);
```

A named operator or a predicate over the item and the raw search text.

### SelectValue

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectValue

```ts
type DropdownValue = CollectionKey;
```

A selectable value: what `getItemValue` returns and what `value` holds.

### SelectValueChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/select/SelectValueChangeReason

```ts
type DropdownValueChangeReason = 'select' | 'deselect' | 'clear' | 'remove' | 'add' | 'create' | 'selectAll' | 'reset';
```

## Constants

### SELECT_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/dropdowns/select/SELECT_DEFAULT_LOCALE_TEXT

```ts
const SELECT_DEFAULT_LOCALE_TEXT: DropdownLocaleText;
```
