# Cookie consent banner

A banner to collect user consent built with Hero UI.

By Hero UI. Categories: framework, interface, language, library.

[Demo](https://hero-ui-cookie-consent.preview.croct.live) · [Deploy](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcroct-tech%2Fvercel-template&project-name=hero-ui-cookie-consent&repository-name=hero-ui-cookie-consent&demo-title=Cookie+consent+banner&demo-description=A+banner+to+collect+user+consent+built+with+Hero+UI.&demo-image=https%3A%2F%2Fcdn.croct.io%2Fassets%2Ftemplates%2Fcovers%2Flibrary-hero-ui-cookie-consent.png&external-id=hero-ui%3A%2F%2Fcomponent%2Fcookie-consent&integration-ids=oac_cTQZ22CIXn5XgZXYk2nBwFdU&demo-url=https%3A%2F%2Fhero-ui-cookie-consent.preview.croct.live) · [Source](https://github.com/croct-tech/templates/blob/master/templates/hero-ui/component/cookie-consent/)

## Installation

```sh
npx croct@latest use hero-ui://component/cookie-consent
```

# Introduction

This template adds a cookie consent component built with [Hero UI](https://heroui.com/?utm_source=croct) to your project
or creates a new project using [Next.js](https://nextjs.org/?utm_source=croct) if none is found in the current
directory.

It comes fully integrated with Croct, giving you CMS, AB testing, and personalization out of the box.

## Usage

To create a new project using this template, run:

```croct-cmd
croct use hero-ui://component/cookie-consent
```

You can customize the template by specifying options:

```croct-cmd
croct use hero-ui://component/cookie-consent --router=page
```

## Options

The following options are available for this template:

| Option        | Description                                      | Required | Default  |
|---------------|--------------------------------------------------|----------|----------|
| `projectName` | The name of the project.                         | No       | `my-app` |
| `version`     | The Next.js version to use.                      | No       | `latest` |
| `router`      | The router to use (`app` or `page`).             | No       | `app`    |
| `javascript`  | Whether to use JavaScript instead of TypeScript. | No       | `false`  |
