@maheshmuttintidev/momentumus-react-packages
v0.0.14
Published
momentumus-react-packages is the public repo
Downloads
2
Maintainers
Readme
Publish Package to npm using below commands
yarn publish
- It will auto bump version and publishyarn npm:publish
- It won't auto bump version
Installation
yarn add @maheshmuttintidev/momentumus-react-packages
ornpm 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"
/>
);