pharedata-custom-components
v1.3.0
Published
Pharedata's react custom components
Readme
pharedata-custom-components
Installation
npm i pharedata-custom-components
# or
yarn add pharedata-custom-componentsUsage
import React from 'react';
import {Alert} from 'pharedata-custom-components';
...
<Alert
displayModal={displayModal} //True of False
closeModal={closeModal} //Function
modalTitle="modalTitle" //Text
modalText="TImodalTextTULO" //Text
modalIcon="modalIcon" //'error', 'success' or 'important'
cancelFunc={cancelFunc} //Function
acceptFunc={acceptFunc} //Function
acceptText="acceptText" //Text
showGreyBackground={showGreyBackground} //Function
hideGreyBackground={hideGreyBackground} //Function
scrollTo={scrollTo} //Function
disableScrolling={disableScrolling} //Function
enableScrolling={enableScrolling} //Function
pageYOffset={pageYOffset} //Number
isDesktopRef={isDesktopRef} //True of False
/>