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

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'