Search Plus UI Blocks

Find a block, a category or a site

Cookie consent card with preferences dialogbanner-cookie-preferences

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/banner-cookie-preferences.json

Banner · 3 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/banner-cookie-preferences
Open ↗

Default content

{
  "message": "A few cookies keep you signed in and hold a stay while you book. With your OK we also remember searches.",
  "link": {
    "label": "Cookie policy",
    "href": "#"
  },
  "consent": {
    "title": "Cookies on Lantorra",
    "acceptLabel": "Accept all",
    "rejectLabel": "Reject all",
    "customizeLabel": "Manage preferences",
    "saveLabel": "Save my choices",
    "categoriesTitle": "Cookie categories",
    "requiredLabel": "Always on",
    "categories": [
      {
        "id": "essential",
        "name": "Strictly necessary",
        "description": "Sign-in, security and holding your dates while you pay. Lantorra can't work without these.",
        "required": true,
        "cookies": [
          {
            "name": "lt_session",
            "purpose": "Keeps you signed in between pages",
            "duration": "Session"
          },
          {
            "name": "lt_csrf",
            "purpose": "Protects booking forms from forged requests",
            "duration": "Session"
          },
          {
            "name": "lt_hold",
            "purpose": "Holds a stay for 15 minutes while you pay",
            "duration": "15 minutes"
          }
        ]
      },
      {
        "id": "preferences",
        "name": "Preferences",
        "description": "Remember your currency, language and the last places you searched.",
        "cookies": [
          {
            "name": "lt_currency",
            "purpose": "Shows prices in the currency you chose",
            "duration": "1 year"
          },
          {
            "name": "lt_recent",
            "purpose": "Lists your recent searches on the home page",
            "duration": "30 days"
          }
        ]
      },
      {
        "id": "analytics",
        "name": "Analytics",
        "description": "Count visits and see where search gets stuck. Aggregated, kept 13 months, never sold.",
        "cookies": [
          {
            "name": "_lt_visit",
            "purpose": "Counts a visit once per day",
            "duration": "13 months"
          }
        ]
      },
      {
        "id": "marketing",
        "name": "Marketing",
        "description": "Tell us which campaign or partner brought you, so hosts' fees don't pay for ads that don't work.",
        "cookies": [
          {
            "name": "lt_ref",
            "provider": "Partner sites",
            "purpose": "Records the partner that referred you",
            "duration": "30 days"
          }
        ]
      }
    ],
    "preferences": {
      "title": "Your cookie preferences",
      "description": "Choose which cookies Lantorra may set. You can change this any time from the link at the foot of every page.",
      "cookiesLabel": "See cookies ({count})",
      "nameLabel": "Cookie",
      "purposeLabel": "Purpose",
      "durationLabel": "Kept for",
      "close": "Close"
    },
    "saved": {
      "message": "Your cookie preferences are saved.",
      "changeLabel": "Change preferences"
    }
  }
}