ComboStrap UI - Badge

1 - About

badge is a ComboStrap UI component that shows a small status descriptors such as:

  • a count
  • or a label

Since version 1.1

2.1 - Syntax

badge follows the superset HTML syntax and can then be customized

  • Full Qualified Syntax
<badge type="type" rounded="true|false">Text</badge>
  • Short Syntax
<badge type rounded="true|false">Text</badge>

where:

  • type defines the color
  • rounded will give a look more rounded (Default: true)

3 - Type

A badge may have the following type:

  • primary
  • secondary
  • success
  • danger
  • warning
  • info (Default)
  • tip
  • light
  • dark

4 - Configuration

4.1 - defaultBadgeAttributes

defaultBadgeAttributes is a configuration that defines the default badge attributes

Default value:

type="info" rounded="true"