badgify: Turn Text into A Badge

badgifyR Documentation

Turn Text into A Badge

Description

Turn Text into A Badge

Usage

badgify(
  vec,
  fontweight = c("bold", "bolder", "normal", "inherit", "initial", "lighter", "unset"),
  fontsize = c("xx-small", "x-small", "small", "medium", "large", "unset", "inherit"),
  color_background = "#d2d6de",
  color_text = "#444"
)

Arguments

vec

a vector of terms to make into a badge

fontweight

fontweight of badge text

fontsize

fontsize of badge text

color_background

background colour. Can be a single value or a vector the same length as vec.

color_text

text colour. Can be a single value or a vector the same length as vec.

Value

string with html encoding for the badge


CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.