Complete reference for all components, props, types, and configuration options in mantine-select-async-paginate.
The main component for single-select async pagination. Supports both single and multi-select modes via the `multiple` prop.
import { AsyncPaginateSelect } from 'mantine-select-async-paginate'; <AsyncPaginateSelect loadOptions={loadOptions} value={value} onChange={setValue} // ... other props />
Prop | Type | Default | Description |
---|---|---|---|
loadOptions required | LoadOptionsFunction | - | Function to load options asynchronously |
value | string | null | string[] | null | Current selected value(s) |
onChange | Function | - | Callback when value changes |
multiple | boolean | false | Enable multi-select mode |
defaultOptions | boolean | ComboboxItem[] | false | Load options on mount or provide default options |
cacheOptions | boolean | false | Cache loaded options |
debounceTimeout | number | 300 | Debounce timeout in milliseconds |
minSearchLength | number | 0 | Minimum characters to trigger search |
maxSelectedValues | number | - | Maximum selections allowed (multi-select only) |
excludeSelected | boolean | true | Hide selected options from dropdown (multi-select only) |
loadingMessage | string | "Loading..." | Message shown while loading |
noOptionsMessage | string | "No options" | Message shown when no options found |
loadMoreText | string | "Load more..." | Text for load more button |
onLoadMore | () => void | - | Callback when load more is triggered |
renderOption | Function | - | Custom option renderer |
additional | any | - | Additional data passed to loadOptions |