Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Custom Inputs
Select
Components
Components
78
Micro Charts
Navigation
Libraries
Content Editor
Data View
Form Builder
Image Designer
Kanban Board
PDF Viewer
Video Player
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Buy License

Cookie Popup

Cookie Popup is a non-blocking consent popup for cookie and privacy choices. Use it on public pages or applications when users need to choose between accepting all cookies or only necessary cookies.

Use it for:
  • Showing a short cookie or privacy consent message.
  • Linking to a cookie policy or privacy policy page.
  • Letting users choose all or necessary cookies.
  • Handling the selected consent type with the cookieAccepted event.

Cookie Popup does not persist the choice by itself. Store the accepted consent state in a cookie, localStorage, or backend and control visible from the application. Do not use Cookie Popup as a normal Dialog, Alert, Announcement, snackbar, or settings panel.

PropTypeDefault
cookiePolicyUrl
URL to the cookie policy page
string''
visible
Whether the cookie popup is visible
booleantrue
EventDescription
cookieAcceptedEmitted when user accepts cookies. Returns 'all' or 'necessary'