Skip to main content
Version: 1.0.4

IComboBoxPeoplePickerProps

@spartanfx/react v1.0.4


@spartanfx/react / IComboBoxPeoplePickerProps

Interface: IComboBoxPeoplePickerProps

Props for the ComboBoxPeoplePicker component, which renders a Fluent UI ComboBox allowing users to select one or more people from SharePoint groups or predefined lists.

Properties

PropertyTypeDescription
allowedUsers?ISiteUserInfo[]Optional filter: restricts selection to a defined subset of users.
controlProps?Partial<IComboBoxProps>Optional additional ComboBox props passed directly to the Fluent UI component.
disabledUsers?ISiteUserInfo[]Optional filter: disables selection for these users.
inlineLabel?booleanIf true, displays the label inline (not currently used).
label?stringOptional label to describe the field (not rendered by default in this component).
multiSelect?booleanEnables multi-select behavior in the ComboBox. Default is single-select.
onChange(newValue, oldValue) => anyTriggered when the selected users change.
required?booleanMarks the control as required (not currently used in logic).
selectedPeoplesIComboBoxPeoplePickerUserProps | IComboBoxPeoplePickerUserProps[]The current selected people. Can be a single user or an array of users.
sourceGroups?string[] | number[]List of SharePoint group IDs or names to pull users from.
spSPFISPFI instance from @pnp/sp used for SharePoint data access.
webPartContextWebPartContextCurrent web part context, used for constructing URLs and resolving user photos.