Skip to content

Latest commit

 

History

History

cookie-disclaimer

Cookie disclaimer

Shows a message that explains the conditions of the Data Protection Act. By clicking on the button, the component stores the date and time as an identifier in the local storage, tracking when the user has clicked. If an identifier is stored, the cookie disclaimer wont show anymore till the user deletes its cache.

Properties

Variant

Attribute Details
variant="fixed" Adds position fixed and put it to the end of the viewport

Title

The attribute title specifies the title of the cookie disclaimer

Button Name

The attribute buttonname specifies the text on the accept button

onClick

The function-valued attribute onClick can be used as a callback prop for React and other frameworks.