Badge

Badges are visual indicators that represent statuses, notifications, and short messages.

Sass Variables

The Telerik and Kendo UI Badge enables you to configure and customize its appearance through the available Sass variables.

VariableDefault ValueComputed ValueValue
kendo-badge-border-width1px1pxDefault: 1pxComputed: 1px
Description: The width of the border around the Badge.
kendo-badge-border-radius$kendo-border-radius-md4pxDefault: $kendo-border-radius-mdComputed: 4px
Description: The border radius of the Badge.
kendo-badge-padding-xk-map-get( $kendo-spacing, 1 )4pxDefault: k-map-get( $kendo-spacing, 1 )Computed: 4px
Description: The horizontal padding of the Badge.
kendo-badge-sm-padding-xk-map-get( $kendo-spacing, 0.5 )2pxDefault: k-map-get( $kendo-spacing, 0.5 )Computed: 2px
Description: The horizontal padding of the small Badge.
kendo-badge-md-padding-xk-map-get( $kendo-spacing, 1 )4pxDefault: k-map-get( $kendo-spacing, 1 )Computed: 4px
Description: The horizontal padding of the medium Badge.
kendo-badge-lg-padding-xk-map-get( $kendo-spacing, 1.5 )6pxDefault: k-map-get( $kendo-spacing, 1.5 )Computed: 6px
Description: The horizontal padding of the large Badge.
kendo-badge-padding-yk-map-get( $kendo-spacing, 1 )4pxDefault: k-map-get( $kendo-spacing, 1 )Computed: 4px
Description: The vertical padding of the Badge.
kendo-badge-sm-padding-yk-map-get( $kendo-spacing, 0.5 )2pxDefault: k-map-get( $kendo-spacing, 0.5 )Computed: 2px
Description: The vertical padding of the small Badge.
kendo-badge-md-padding-yk-map-get( $kendo-spacing, 1 )4pxDefault: k-map-get( $kendo-spacing, 1 )Computed: 4px
Description: The vertical padding of the medium Badge.
kendo-badge-lg-padding-yk-map-get( $kendo-spacing, 1.5 )6pxDefault: k-map-get( $kendo-spacing, 1.5 )Computed: 6px
Description: The vertical padding of the large Badge.
kendo-badge-font-size$kendo-font-size-xs10pxDefault: $kendo-font-size-xsComputed: 10px
Description: The font sizes of the Badge.
kendo-badge-sm-font-size$kendo-font-size-xs10pxDefault: $kendo-font-size-xsComputed: 10px
Description: The font size of the small Badge.
kendo-badge-md-font-size$kendo-font-size-xs10pxDefault: $kendo-font-size-xsComputed: 10px
Description: The font size of the medium Badge.
kendo-badge-lg-font-size$kendo-font-size-xs10pxDefault: $kendo-font-size-xsComputed: 10px
Description: The font size of the large Badge.
kendo-badge-line-height11Default: 1Computed: 1
Description: The line heights used along with the $kendo-font-size variable.
kendo-badge-sm-line-height$kendo-badge-line-height1Default: $kendo-badge-line-heightComputed: 1
Description: The line height used along with the $kendo-font-size variable of the small Badge.
kendo-badge-md-line-height$kendo-badge-line-height1Default: $kendo-badge-line-heightComputed: 1
Description: The line height used along with the $kendo-font-size variable of the medium Badge.
kendo-badge-lg-line-height$kendo-badge-line-height1Default: $kendo-badge-line-heightComputed: 1
Description: The line height used along with the $kendo-font-size variable of the large Badge.
kendo-badge-min-widthcalc( #{$kendo-badge-line-height * 1em} + #{$kendo-badge-padding-y * 2} + #{$kendo-badge-border-width * 2})calc(1em + 8px + 2px)Default: calc( #{$kendo-badge-line-height * 1em} + #{$kendo-badge-padding-y * 2} + #{$kendo-badge-border-width * 2})Computed: calc(1em + 8px + 2px)
Description: The calculated minimum width of the circular Badge.
kendo-badge-sm-min-widthcalc( #{$kendo-badge-sm-line-height * 1em} + #{$kendo-badge-sm-padding-y * 2} + #{$kendo-badge-border-width * 2} )calc(1em + 4px + 2px)Default: calc( #{$kendo-badge-sm-line-height * 1em} + #{$kendo-badge-sm-padding-y * 2} + #{$kendo-badge-border-width * 2} )Computed: calc(1em + 4px + 2px)
Description: The calculated minimum width of the small circular Badge.
kendo-badge-md-min-widthcalc( #{$kendo-badge-md-line-height * 1em} + #{$kendo-badge-md-padding-y * 2} + #{$kendo-badge-border-width * 2} )calc(1em + 8px + 2px)Default: calc( #{$kendo-badge-md-line-height * 1em} + #{$kendo-badge-md-padding-y * 2} + #{$kendo-badge-border-width * 2} )Computed: calc(1em + 8px + 2px)
Description: The calculated minimum width of the medium circular Badge.
kendo-badge-lg-min-widthcalc( #{$kendo-badge-lg-line-height * 1em} + #{$kendo-badge-lg-padding-y * 2} + #{$kendo-badge-border-width * 2} )calc(1em + 12px + 2px)Default: calc( #{$kendo-badge-lg-line-height * 1em} + #{$kendo-badge-lg-padding-y * 2} + #{$kendo-badge-border-width * 2} )Computed: calc(1em + 12px + 2px)
Description: The calculated minimum width of the large circular Badge.
kendo-badge-sizes( sm: ( padding-x: $kendo-badge-sm-padding-x, padding-y: $kendo-badge-sm-padding-y, font-size: $kendo-badge-sm-font-size, line-height: $kendo-badge-sm-line-height, min-width: $kendo-badge-sm-min-width ), md: ( padding-x: $kendo-badge-md-padding-x, padding-y: $kendo-badge-md-padding-y, font-size: $kendo-badge-md-font-size, line-height: $kendo-badge-md-line-height, min-width: $kendo-badge-md-min-width ), lg: ( padding-x: $kendo-badge-lg-padding-x, padding-y: $kendo-badge-lg-padding-y, font-size: $kendo-badge-lg-font-size, line-height: $kendo-badge-lg-line-height, min-width: $kendo-badge-lg-min-width ) )(sm: (padding-x: 2px, padding-y: 2px, font-size: 10px, line-height: 1, min-width: calc(1em + 4px + 2px)), md: (padding-x: 4px, padding-y: 4px, font-size: 10px, line-height: 1, min-width: calc(1em + 8px + 2px)), lg: (padding-x: 6px, padding-y: 6px, font-size: 10px, line-height: 1, min-width: calc(1em + 12px + 2px)))Default: ( sm: ( padding-x: $kendo-badge-sm-padding-x, padding-y: $kendo-badge-sm-padding-y, font-size: $kendo-badge-sm-font-size, line-height: $kendo-badge-sm-line-height, min-width: $kendo-badge-sm-min-width ), md: ( padding-x: $kendo-badge-md-padding-x, padding-y: $kendo-badge-md-padding-y, font-size: $kendo-badge-md-font-size, line-height: $kendo-badge-md-line-height, min-width: $kendo-badge-md-min-width ), lg: ( padding-x: $kendo-badge-lg-padding-x, padding-y: $kendo-badge-lg-padding-y, font-size: $kendo-badge-lg-font-size, line-height: $kendo-badge-lg-line-height, min-width: $kendo-badge-lg-min-width ) )Computed: (sm: (padding-x: 2px, padding-y: 2px, font-size: 10px, line-height: 1, min-width: calc(1em + 4px + 2px)), md: (padding-x: 4px, padding-y: 4px, font-size: 10px, line-height: 1, min-width: calc(1em + 8px + 2px)), lg: (padding-x: 6px, padding-y: 6px, font-size: 10px, line-height: 1, min-width: calc(1em + 12px + 2px)))
Description: The sizes map for the Badge.