# @pierreinza/selector

> This component is a selector helper. It's just for easiest integration on React apps.

Latest version **1.0.9** (published 2022-09-16) · 0 weekly downloads

## Install

```sh
npm install @pierreinza/selector
pnpm add @pierreinza/selector
yarn add @pierreinza/selector
bun add @pierreinza/selector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2022-09-16 |
| First published | 2022-08-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pierreinza |

## Links

- npm: https://www.npmjs.com/package/@pierreinza/selector
- npm.io page: https://npm.io/package/@pierreinza/selector

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.4.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.5
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Recent versions

- 1.0.9 (latest) — 2022-09-16
- 1.0.8 — 2022-09-12
- 1.0.7 — 2022-09-12
- 1.0.6 — 2022-09-12
- 1.0.5 — 2022-09-12
- 1.0.3 — 2022-09-12
- 0.1.0 — 2022-09-12
- 1.0.2 — 2022-08-26
- 1.0.1 — 2022-08-22
- 1.0.0 — 2022-08-21

## README

This component is a selector helper. It's just for easiest integration on React apps. 

#First of all 
I imagine that you have installed node, npm, and React on your project. If it's not please do it it's a lot of fun. 
#Second time 
For importing my package on your roject run the command : 
	npm i @pierreinza/selector

#And now 
don't forget to put on the top of your reactFile import {Selector } from '@pierreinza/selector'

Now you can use this package. 
Please juste put on props 'result' who is a function who will put the data selected on your formular data, or what ever. And 'options ', who's a list of objects with to parameters 'name' the name who will be displayed on the selector, and 'value' the value who will be gave at the end.  

#exemple

//import {Selector} from '@pierreinza/selector'

<Selector result={(value) => { setDepartement(value) }} options={[{ name: "Sales", value: "Sales" }, { name: "Marketing", value: "Marketing" }, { name: "Engineering", value: "Engineering" }, { name: "Human Resources", value: "Human Resources" }, { name: "Legal", value: "Legal" }]} />

---
_Source: https://npm.io/package/@pierreinza/selector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
