mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-11-16 00:25:16 +01:00
✨ 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:
1
build/index.d.ts
vendored
1
build/index.d.ts
vendored
@@ -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, {}> {}
|
||||
|
||||
Reference in New Issue
Block a user