File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/react-examples/src/react/PeoplePicker Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 77 ListPeoplePicker ,
88 ValidationState ,
99 PeoplePickerItemSuggestion ,
10+ IPeoplePickerItemSuggestionStyles ,
1011} from '@fluentui/react/lib/Pickers' ;
1112import { people , mru } from '@fluentui/example-data' ;
1213
@@ -40,6 +41,10 @@ const personaStyles: Partial<IPersonaStyles> = {
4041 } ,
4142} ;
4243
44+ const suggestionItemStyles : Partial < IPeoplePickerItemSuggestionStyles > = {
45+ subComponentStyles : { persona : personaStyles } ,
46+ } ;
47+
4348export const PeoplePickerListExample : React . FunctionComponent = ( ) => {
4449 const [ delayResults , setDelayResults ] = React . useState ( false ) ;
4550 const [ isPickerDisabled , setIsPickerDisabled ] = React . useState ( false ) ;
@@ -125,8 +130,9 @@ export const PeoplePickerListExample: React.FunctionComponent = () => {
125130 const onRenderSuggestionItem = ( personaProps : IPersonaProps , suggestionsProps : IBasePickerSuggestionsProps ) => {
126131 return (
127132 < PeoplePickerItemSuggestion
128- personaProps = { { ... personaProps , styles : personaStyles } }
133+ personaProps = { personaProps }
129134 suggestionsProps = { suggestionsProps }
135+ styles = { suggestionItemStyles }
130136 />
131137 ) ;
132138 } ;
You can’t perform that action at this time.
0 commit comments