badge (function)

badge(text='', level='default')[source]

Generate a badge - TBS style

Key Arguments

  • text – the text content

  • level – the level colour of the badge [ “default” | “success” | “warning” | “important” | “info” | “inverse” ]

Return

  • badge – the badge