Set value of Fluent React TagPicker?

1k Views Asked by At

How does have Fluent React's TagPicker component (https://developer.microsoft.com/en-us/fluentui#/controls/web/pickers) render existing tags. I've tried passing in with input and value props, with no luck. E.g.:

<TagPicker value={[{"key": "a", name: "A Tag"}]}/>
1

There are 1 best solutions below

0
On

Needed to use defaultSelectedItems, e.g.:

<TagPicker defaultSelectedItems={[{"key": "a", name: "A Tag"}]}/>