Loading...
See the new new component docs (under construction) for V19 and TypeScript samples.

Cookie Consent

This component is included in Vaadin Pro and Prime subscriptions. There is a free 14-day trial available.

Installation instructions for Java

1. Create a project

Simplest way to create a project, is to use a Starter.

2. Import the vaadin-bom

Make sure you have imported vaadin-bom.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-bom</artifactId>
      <version>21.0.1</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

3a. Include all the Vaadin components in a single dependency

All the Vaadin components are available with a single dependency. You can leave out the version as vaadin-bom specifies it.

<dependencies>
  <dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin</artifactId>
  </dependency>
</dependencies>

See examples of how to use the component.

3b. Include the single component dependency

Alternatively, you can include only the specific component dependency. Make sure you have imported vaadin-bom as described above.

Include the component dependency. You can leave out the version as the vaadin-bom specifies it.

<dependencies>
  <dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-cookie-consent-flow</artifactId>
  </dependency>
</dependencies>

For client-side developers

To use the Web Component in a client-side project, see npm instructions.