Skip to main content

IPeoplePickerProps

@spartanfx/react v1.2.2


@spartanfx/react / spfx / IPeoplePickerProps

Interface: IPeoplePickerProps

Props for the PeoplePicker component.

Properties

Required

PropertyTypeDefaultDescription
selectedUsersIPeoplePickerUser[]-Array of currently selected users.
setSelectedUsers(users) => void-Callback to update selected users when the picker selection changes.
spSPFI-PnPjs SPFI instance for interacting with the SharePoint REST API.
webPartContextWebPartContext-SPFx web part context used to determine the current site and resolve user photo URLs.

Options

PropertyTypeDefaultDescription
disabled?boolean-Disables interaction with the picker when set to true.
filterGroupId?number-Optional SharePoint group ID to filter user results.
maximumSuggestion?number5Maximum number of suggestions to display in the dropdown.
selectionLimit?number1000Maximum number of users that can be selected.

Appearance & theming

PropertyTypeDefaultDescription
className?string-Optional CSS class to apply to the root picker container.

Advanced & escape hatches

PropertyTypeDefaultDescription
inputProps?IInputProps-Optional overrides for the input element props (e.g., placeholder, ARIA attributes).