Push Notification

Web/mobile push notification with title, body, actions, and data payload.

Report an issue
notification

Install

$ npx shadcn@latest add @open-types/push-notification

Source

export interface PushNotificationAction {
  action: string;
  title: string;
  icon?: string;
}

export interface PushNotification {
  title: string;
  body?: string;
  icon?: string;
  badge?: string;
  image?: string;
  tag?: string;
  data?: Record<string, unknown>;
  actions?: PushNotificationAction[];
  url?: string;
}
export interface PushNotificationAction {
  action: string;
  title: string;
  icon?: string;
}

export interface PushNotification {
  title: string;
  body?: string;
  icon?: string;
  badge?: string;
  image?: string;
  tag?: string;
  data?: Record<string, unknown>;
  actions?: PushNotificationAction[];
  url?: string;
}