allowedValues? | string[] | If provided, restricts lookup options to items containing these allowed string values. |
canSelectAll? | boolean | Enables a "Select All" checkbox in multi-select mode. |
cascadingFieldInternalName? | string | Internal name of the field this lookup cascades from. Used to filter lookup results. |
disabled? | boolean | Whether the field is disabled. Overrides form-level settings. |
inlineLabel? | boolean | Displays the label inline with the dropdown. |
labelWidth? | string | Custom width to apply to the label, useful when inlineLabel is true. |
lookupFieldInternalName? | string | Internal name of the lookup field to use for cascading filtering (e.g., the lookup target's field). |
maxOptions? | number | Maximum number of options to show without search; a notice is shown when limit is exceeded. |
maxSelection? | number | Maximum number of items that can be selected in multi-select mode. If not set, allows unlimited selection. |
options? | any[] | Optional custom options to be used instead of querying the list. |
optionTextField? | string | Field name to use for option text display, instead of the SharePoint field's LookupField. Useful when LookupField may return null (e.g. calculated field returning null for inactive items). When set and different from LookupField, it is added to the CAML View automatically. |
readonly? | boolean | If true, renders the field in readonly mode without user interaction. |
renderDisabledOptions? | boolean | When true, options flagged by isOptionDisabled are rendered in the dropdown with disabled styling. Default: false (filter them out). |
required? | boolean | Whether the field is required. |
restrictFields? | string[] | Restrict the CAML View fields returned by SharePoint to this list (plus the essentials: Id, the SP LookupField, and optionTextField if set — auto-merged so the component cannot break itself). Useful to access extra row data in isOptionDisabled or downstream consumers. When not provided, no ViewFields are passed, so SharePoint returns all properties of the item. |
withSearch? | boolean | Enables a search box above the dropdown options for filtering. |