RayCraftDocs
v1.0.3 raycraft.dev
On this page

CookieConsent

Free

A banner that asks which cookies are allowed. It remembers the answer in local storage, offers Accept all, Only necessary and a choice by category, and does not block the page.

Example

CookieConsent control

Parameters

ParameterTypeDescription
CategoriesIReadOnlyList<ConsentCategory>Labels along the horizontal axis.
ClassstringExtra CSS classes added to the root element.
Messagestring
PolicyHrefstring
PolicyTextstring
StorageKeystring
StylestringInline style added to the root element.
TitlestringTitle text (drawer header, tab caption, column header, step caption).
Versionint

Events

EventTypeDescription
OnConsentEventCallback<IReadOnlyDictionary<string, bool>>

Package

CookieConsent is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.