Skip to main content

Badge

Import​

import { Badge } from '@resultadosdigitais/tangram-components'

Properties​

children​

Typenode

Description​

Should be some string or element

content​

Typenumber
Defaultnull

Description​

Sets the value of badge

kind​

Type
Enum of:
  • Badge.kinds.success
  • Badge.kinds.default
  • Badge.kinds.danger
DefaultBadge.kinds.danger

Description​

Sets the style kinds

maxValue​

Typenumber
Defaultnull

Description​

Sets the maximum value to be shown

hasLeadingZeros​

Typebool
Defaultfalse

Description​

Sets the badge with left zero

Feedback​