Skip to content

FeedbackCookieBanner ​

A consent banner with categories. The answer is remembered and the banner comes back when a category is added.

ts
import { FeedbackCookieBanner } from '@zairakai/vue-components/Feedback'

Usage ​

vue
<FeedbackCookieBanner />

Props ​

NameTypeDefaultDescription
idstring
classstring
categoriesarray[{ id: 'essential', label: 'Essential', required: true }]The categories the visitor can accept: { id, label, description, required }. A required one is always on.
storageKeystring'zk-consent'Where the answer is remembered.
titlestring'Cookies'
acceptLabelstring'Accept all'
rejectLabelstring'Reject all'
customizeLabelstring'Customize'
saveLabelstring'Save my choices'

Events ​

NameDescription
consent

Slots ​

NameDescription
default

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.