4.0.6 • Published 8 days ago

@brighthr/component-employeepicker v4.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 days ago

EmployeePicker

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-employeepicker

To implement the EmployeePicker component into your project you’ll need to add the import:

import EmployeePicker from '@brighthr/component-employeepicker';

After adding import into your project you can use it simply like:

<EmployeePicker />

Props

NameTypeDefaultDescription
groupBystringThe key in the employee object to group user by, e.g team.
hideSelectAllbooleanfalseIf true, adds the functionality to be able to select all the users.
toggleUsers(ids: Id[]) => voidFunction for setting the external state of users.
usersuserUser object that defines the information of each user (see below).

users prop

NameTypeDefaultDescription
disabledbooleanIf true, the user cannot be selected.
firstNamestringFirst name of the user.
idstring numberId of the user.
lastNamestringLast name of the user.
selectedbooleanIf true, shows the user as being selected.
warningReact.ReactNodeDisplays some information about the user, e.g <p>On annual leave</p>.
4.0.6

8 days ago

4.0.5

2 months ago

4.0.4

2 months ago

4.0.3

2 months ago

4.0.2

2 months ago

4.0.1

3 months ago

4.0.0

3 months ago

3.1.1

3 months ago

3.1.0

3 months ago

3.0.2

3 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.4.7

4 months ago

1.4.6

5 months ago

1.4.5

5 months ago

1.2.0

8 months ago

1.1.1

9 months ago

1.0.2

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

1.4.4

6 months ago

1.4.3

7 months ago

1.4.2

7 months ago

1.3.3

8 months ago

1.4.1

8 months ago

1.3.2

8 months ago

1.4.0

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.1.2

9 months ago

1.0.3

9 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.3.2

12 months ago

0.3.1

12 months ago

0.3.3

11 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.1.0

1 year ago

0.3.0

12 months ago

0.2.0

12 months ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago