Interface BadgerOptions

interface BadgerOptions {
    backgroundColor?: string | CanvasGradient | CanvasPattern;
    color?: string | CanvasGradient | CanvasPattern;
    position?: "top" | "right" | "bottom" | "left" | "topLeft" | "topRight" | "bottomRight" | "bottomLeft" | "center";
    radius?: number;
    size?: number;
    src?: string;
}

Properties

backgroundColor?: string | CanvasGradient | CanvasPattern

The background color for the badge (pill).

color?: string | CanvasGradient | CanvasPattern

The text color for the badge (pill).

position?: "top" | "right" | "bottom" | "left" | "topLeft" | "topRight" | "bottomRight" | "bottomLeft" | "center"

Where the badge should be positioned.

radius?: number

The border radius for the badge (pill).

size?: number

A value between 0 and 1 representing the size of the badge.

src?: string

The url to the image we want to draw the badge on.

Generated using TypeDoc