rhybus-sp-people-picker

1.0.4 • Public • Published

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.

License

MIT © itszerocode

Package Sidebar

Install

npm i rhybus-sp-people-picker

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

90.4 kB

Total Files

8

Last publish

Collaborators

  • rajeshpalepu