0.0.14 • Published 1 year ago

@maheshmuttintidev/momentumus-react-packages v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Publish Package to npm using below commands

  1. yarn publish - It will auto bump version and publish
  2. yarn npm:publish - It won't auto bump version

Installation

  • yarn add @maheshmuttintidev/momentumus-react-packages or npm install @maheshmuttintidev/momentumus-react-packages

Components

BasicMap

import { BasicMap } from '@maheshmuttintidev/momentumus-react-packages';
const GOOGLE_MAPS_API_KEY = 'Azweuw898345ksdfjk234';

return (
  <BasicMap
    mapApiKey={GOOGLE_MAPS_API_KEY}
    focusedCoordinates={{ lat: 17.4065, lng: 78.4772 }}
    onGetPolyPathCoordinates={(pathCoordinates) => {
      console.log('🚀 ~ App ~ data:', pathCoordinates);
      setMapDrawData(pathCoordinates);
    }}
    // resetAllPaths={resetPaths}
    mapStyles={{ height: 350 }}
    libraries={['drawing', 'places']}
  />
);

BasicPagination

import { BasicPagination } from '@maheshmuttintidev/momentumus-react-packages';

return (
  <BasicPagination
    currentPage={currentPage}
    totalPages={10}
    onPageNumberClick={(pageNumber: any) => {
      setCurrentPage(pageNumber);
    }}
    pageButtonClassName="px-2 py-1 rounded-sm"
    activePageButtonClassName="bg-red-400 px-2 py-1 rounded-sm"
    prevButtonClassName="border border-1"
    nextButtonClassName="border border-1"
    searchBoxClassName="w-24 border border-1"
  />
);
0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago