Consent Manager
Install
NPM
npm install @weahead/consent-manager
Yarn
yarn add @weahead/consent-manager
Configuration
Modal
return (
<Modal
// optional, defaults to `Cookies för analys och utveckling`
analyticsLabel={String}
// optional, defaults to `Godkänn alla`
approveAllLabel={String}
// optional, defauts to `Godkänn val`
approveLabel={String}
// required, string containing the information text for when the modal opens
content={String}
// optional, defaults to `Cookies för externt innehåll/teknik (t.ex. sociala medier, ljud, video)`
externalLabel={String}
// optional, defaults to `Nödvändiga cookies, tekniker och funktioner`
functionLabel={String}
// optional, defaults to `Fler inställningar`
moreSettingsLabel={String}
// required, string containing information for when selecting cookies
settingsContent={String}
// optional, defaults to `Vi använder cookies`
title={String}
// defaults to `Återkalla medgivande`
revokeLabel={String}
/>
)
Styling
Control the styling of the modal by declaring values for these CCS-variables
:root {
--cmp-theme-background: "";
--cmp-theme-black: "";
--cmp-theme-disabled: "";
--cmp-theme-disabled-background: "";
--cmp-theme-link: "";
--cmp-theme-primary: "";
--cmp-theme-primary-background: "";
--cmp-theme-secondary: "";
--cmp-theme-secondary-background: "";
--cmp-theme-selected: "";
--cmp-theme-white: "";
--cmp-theme-ff: "";
--cmp-theme-ff-secondary: "";
--cmp-theme-xsmall: "";
--cmp-theme-smaller: "";
--cmp-theme-small: "";
--cmp-theme-large: "";
--cmp-theme-bold: "";
}
License
X11