fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Place holder for NormalPeoplePicker

Open nguyentoantuit opened this issue 9 years ago • 4 comments

Hi all,

Could you please show me how can I add place holder for NormalPeoplePicker?

Thanks, Toan

nguyentoantuit avatar Oct 10 '17 03:10 nguyentoantuit

@joschect Maybe you could help here?

dzearing avatar Oct 12 '17 05:10 dzearing

@nguyentoantuit What do you mean by placeholder? Do you mean placeholder text like: image

If that's what you want then you can pass in the placeholder you want to the inputProps property.

joschect avatar Oct 13 '17 01:10 joschect

@joschect Yes, exactly. We have this option in TextField, but in people picker (NormalPeoplePicker), I don't see that property.

nguyentoantuit avatar Oct 13 '17 06:10 nguyentoantuit

@nguyentoantuit PeoplePicker has prop inputProps that takes an object of input properties, so to apply a placeholder, it'd be

<NormalPeoplePicker
    items={items}
    inputProps={
        { placeholder: 'Placeholder text' }
    }
/>

Closing issue, please reply if you still have questions about the placeholder

erichdev avatar Oct 14 '17 00:10 erichdev