@vagnerzadoque/vagnerlib
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vagnerzadoque/vagnerlib

Weekly Downloads

1

Version

1.1.10

License

MIT

Unpacked Size

52.3 kB

Total Files

18

Last publish

Collaborators

  • vagnerzadoque