Badge

Configs

1

Initial text to show in badge.

Properties

3

Class hierarchy

isBadge: Boolean= truereadonly
Identifies an object as an instance of Badge class, or subclass thereof.
isBadge: Boolean= truereadonlystatic
Identifies an object as an instance of Badge class, or subclass thereof.

Misc

Get/sets and display badge, set to null or empty string to hide.

CSS variables

5
NameDescription
--b-badge-font-sizeBadge font size
--b-badge-heightBadge height (also used as its min-width and border-radius, to ensure it is round for single digits)
--b-badge-backgroundBadge background color
--b-badge-colorBadge text color
--b-badge-offsetBadge offset