Add prop ButtonComponent (#36)

*  Add prop buttonComponent

Allow users to use their own button component

* 🐛 Make it work as expected

* 📝 Add ButtonComponent to the Props table

* ✏️ Capitalize ButtonComponent in index.d.ts
This commit is contained in:
Charles-Henri GUERIN
2019-02-26 13:23:17 +01:00
committed by Rick van Lieshout
parent 0a5e4ea440
commit ee24754fc8
5 changed files with 381 additions and 43 deletions

1
build/index.d.ts vendored
View File

@@ -23,6 +23,7 @@ export interface CookieConsentProps {
acceptOnScrollPercentage?: number;
extraCookieOptions?: object;
disableButtonStyles ?: boolean;
ButtonComponent?: Function | React.ReactElement;
}
export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}