mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-09-18 14:19:37 +02: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:
@@ -98,6 +98,7 @@ One of the props (onAccept) is a function, this function will be called after th
|
||||
| buttonStyle | object | [look at source][buttonStyle] | React styling object for the button. |
|
||||
| contentStyle | object | [look at source][contentStyle] | React styling object for the content. |
|
||||
| disableButtonStyles | boolean | false | If enabled the button will have no default style. (you can still supply style through props) |
|
||||
| ButtonComponent | React component | button | React Component to render as a button.
|
||||
|
||||
## Debugging it
|
||||
|
||||
|
Reference in New Issue
Block a user