UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

19 lines (18 loc) 629 B
import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager'; export type CourierUnreadCountLocation = 'button' | 'header'; export declare class CourierUnreadCountBadge extends HTMLElement { private _themeSubscription; private _location; private _count; private _badge; private _style; constructor(props: { themeBus: CourierInboxThemeManager; location: CourierUnreadCountLocation; }); private getStyles; setCount(count: number): void; refreshTheme(location: CourierUnreadCountLocation): void; private updateBadge; disconnectedCallback(): void; }