1.1.10 • Published 3 years ago

@vagnerzadoque/vagnerlib v1.1.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

SimpleSearch / Component React

Componente de Pesquisa Genérico

Import SimpleSearch

import { SimpleSearch } from '@vagnerzadoque/vagnerlib';

Example implements

this ref at forwardRef
const Mref = useRef(null)

const handleSearch = (selectLabel) => {
  console.log(selecLabel.value)
  console.log(selecLabel.label)
  console.log(Mref.current.value)
}
  <SimpleSearch
          ref={Mref} 
          fields={[
            { label: "Nome", value: "name" },
            { label: "CPF", value: "cpf" },
          ]}
          handleSearch={handleSearch}
          placeholder={"Pesquisa"}
  ></SimpleSearch>

Install

example:

npm i @vagnerzadoque/vagnerlib
1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.10

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago