Back

CookieBanner

Default (bottom)

The banner renders position-fixed. In the showcase it appears inset within this preview box — scroll down to see it.

Top position

Usage

@feedback.CookieBanner(feedback.CookieBannerProps{
    Title:        "We use cookies",
    Message:      "We use cookies for analytics and personalisation.",
    AcceptLabel:  "Accept all",
    RejectLabel:  "Reject",
    PolicyHref:   "/privacy",
    PolicyLabel:  "Privacy Policy",
    Position:     "bottom",  // "bottom" | "top"
    StorageKey:   "cookie-consent",  // localStorage key
})