2.0.4 • Published 4 years ago

react-sp-people-picker v2.0.4

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

react-sp-people-picker

SharePoint People Picker built for React Projects

NPM JavaScript Style Guide

Install

npm install --save react-sp-people-picker

Usage

import React, { Component } from 'react'

import SpPeoplePicker from 'react-sp-people-picker'
import 'react-sp-people-picker/dist/index.css'

class Example extends Component {
  render() {
    return <SpPeoplePicker onSelect={handleSelect} />
  }
}

You can use the component within your function component as well. Add the following tag into your jsx file.

<SpPeoplePicker onSelect={handleSelect} />

Just implement handleSelect(user) method which gets the selected SP User object as parameter.

For detailed usage information please read this blog post.

License

MIT © itszerocode

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago