Skip to main content

Cookie Consent
New

Cookie consent component informs users about cookie usage. This banner is shown when they visit a website or an application for the first time.

Properties #

Property Attribute Description Type Default
accessibleLabel accessible-label Adds accessible label for the cookie consent ok button. string "Hyväksyn evästeiden käytön"
theme theme Theme of the cookie consent banner. "" | "default" | "turva" ""

Events #

Event Description Type
duetCookieConsent Emitted when the consent button has been clicked. CustomEvent<{ component: "duet-cookie-consent"; }>

Dependencies #

Depends on #

Graph #

graph TD;
duet-cookie-consent --> duet-spacer
duet-cookie-consent --> duet-button
duet-button --> duet-icon
duet-button --> duet-spinner
style duet-cookie-consent fill:#f9f,stroke:#333,stroke-width:4px

Integration

For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.



Tutorials

Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:

Tutorials

Abstract

Tutorials

Building Layouts

Tutorials

Using CLI Tools

Tutorials

Creating Custom Patterns

Tutorials

Server Side Rendering

Tutorials

Sharing Prototypes

Tutorials

Usage With Markdown

Tutorials

VS Code

Tutorials

Zeplin


Troubleshooting

If you experience any issues while using a component, please head over to the Support page for more guidelines and help.