@schibstedspain/react-cmp-ui

1.18.0 • Public • Published

CmpUi

This component shows a Banner to inform the user that the website use cookies with different purposes. From here, it could just accept it and keep using the website or open the in order to know more about this and even customize the consents.

The banner will be shown only if the user hasn't accepted yet the consents.

Required You need to have loaded the cmp compliant library in order to be able to use this component. Otherwise it won't be shown.

Installation

$ npm install @schibstedspain/react-cmp-ui --save

Usage

Basic usage

import CmpUi from '@schibstedspain/react-cmp-ui'

return (
  <CmpUi
    companyName="Your Company Name LTD"
    logo="https://www.schibsted.es/wp-content/themes/Schibsted-spn/img/logo.png"
    privacyUrl="#privacy-url-to-configure"
  />
)

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @schibstedspain/react-cmp-ui

    Weekly Downloads

    2

    Version

    1.18.0

    License

    MIT

    Unpacked Size

    21.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • schibstedspain