UtilOptional

badgeLog

Logs a message to the browser console behind a coloured badge.

Usage

import { badgeLog } from 'ngwr/utils';

badgeLog('SAVED', '#10b981', 'profile updated');

API

NameDescriptionTypeDefault
badgeLog(badge, color, message)Logs message after a badge pill. color paints the pill's border and text, not a fill.(badge, color, message) => void—

See also