@ecsbase/cookie-consent
v0.2.0
Published
@ecsbase/cookie-consent — reusable building block.
Readme
@ecsbase/cookie-consent
Persistent cookie-consent banner backed by localStorage.
Install
pnpm add @ecsbase/cookie-consentPeer dependencies
@angular/common^20.0.0@angular/core^20.0.0@angular/material^20.0.0
Quick start
import { CookieConsentComponent, CookieConsentService } from '@ecsbase/cookie-consent';
@Component({
imports: [CookieConsentComponent],
template: `<ecs-cookie-consent message="We use cookies." />`,
})
export class Demo {
readonly consent = inject(CookieConsentService);
}Playground
Live demo: /cookie-consent — run pnpm start:playground then visit http://localhost:4200/cookie-consent.
License
MIT — see LICENSE at the repository root.
