### Install Astro Cookie Consent CLI Source: https://github.com/jop-software/astro-cookieconsent/blob/main/README.md Installs the Astro cookie consent integration using the Astro CLI. This is the recommended method for setting up integrations in Astro projects. ```bash npx astro add @jop-software/astro-cookieconsent ``` ```bash pnpm astro add @jop-software/astro-cookieconsent ``` -------------------------------- ### Install Astro Cookie Consent Manually Source: https://github.com/jop-software/astro-cookieconsent/blob/main/README.md Manually installs the Astro cookie consent integration package. Ensure peer dependencies, specifically 'vanilla-cookieconsent', are also installed. ```bash npm install @jop-software/astro-cookieconsent ``` ```bash pnpm add @jop-software/astro-cookieconsent ``` -------------------------------- ### Configure Astro Cookie Consent Source: https://github.com/jop-software/astro-cookieconsent/blob/main/README.md Configures the vanilla-cookieconsent integration within the astro.config.mjs file. Allows customization of GUI options like layout and position for consent and preferences modals. ```javascript import cookieconsent from "@jop-software/astro-cookieconsent"; export default defineConfig({ // ... integrations: [ // ... cookieconsent({ // ... guiOptions: { consentModal: { layout: 'cloud', position: 'bottom center', equalWeightButtons: true, flipButtons: false, }, preferencesModal: { layout: "box", position: "right", equalWeightButtons: true, flipButtons: false, }, }, // ... }), ], }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.