How to use ButtonComponent of React-Cookie-Consent library?

Viewed 39

Can someone advise on how to use the ButtonComponent of react-cookie-consent library. I want to add a third button on top of the accept and decline one. Looking at their documentation, there is a button component which is described as follow: ButtonComponent |React component|button |React Component to render as a button.

I have tried to use it in different ways, as a component child of the CookieConsent component <ButtonComponent/> or as props `

<CookieConsent ButtonComponent="button"
     ButtonComponentStyle={
     color: "#ffff",
     background: "#245564",
     padding: "10px 20px",
     borderRadius: "16px",
     fontSize: "1em",
     display: "flex",
     alignContent: "center",
     }>
     </CookieConsent>

None of these worked.

0 Answers
Related