Is there a way to add custom content (bar, modal, etc...) and call nuxt-cookie-control actions? #92
-
Describe the featureSet my own design modal and bar and call show action modal action, decline cookies, accept, etc... from my own comonents? Additional information
Final checks
|
Beta Was this translation helpful? Give feedback.
Answered by
dargmuesli
May 4, 2023
Replies: 1 comment 2 replies
-
Yes, please check the README: https://github.com/dargmuesli/nuxt-cookie-control#usage const {
cookiesEnabled,
cookiesEnabledIds,
isConsentGiven
} = useCookieControl() |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does, but only as full replacement. It's not possible to replace single buttons, but you could create a custom modal, taking inspiration from CookieControl.vue, and write the result into the variables mentioned above.