Kendo UI for Vue Badge Appearance Configuration
The Badge
and BadgeContainer
component provides many predefined appearance options such as different shapes, sizes, theme colors and optional cutout borders.
Theme Color
The Badge and BadgeContainer allows you to specify predefined theme colors.
The available themeColor
values are:
primary
(Default)—Applies coloring based on primary theme color.secondary
—Applies coloring based on secondary theme color.tertiary
— Applies coloring based on tertiary theme color.inherit
— Applies inherited coloring value.info
—Applies coloring based on info theme color.success
— Applies coloring based on success theme color.warning
— Applies coloring based on warning theme color.error
— Applies coloring based on error theme color.dark
— Applies coloring based on dark theme color.light
— Applies coloring based on light theme color.inverse
— Applies coloring based on inverted theme color.
Rounded
The Badge and BadgeContainer components allow you to set its roundness and thus style it in different shapes.
The available rounded
values are:
- small—Sets the
border radius
to1px
. - medium (Default)—Sets the
border radius
to2px
. - large—Sets the
border radius
to4px
. - full—Sets the
border radius
to4px
. - null—Passing
null
to therounded
property gives us the option to define acustom CSS class
that defines theborder-radius
of the Button.
Size
The Badge and BadgeContainer allow you to set different sizes to the output badge.
The available size
values are:
small
— Sets thepadding
to2px
and8px
.medium
(Default) — Sets thepadding
to4px
and8px
.large
— Sets thepadding
to6px
and8px
.null
— Passingnull
to thesize
property gives us the option to define acustom CSS class
that sets thepadding
of the Button.
Fill
The Badge and BadgeContainer components enable you to set styling options and create solid or outline badges by setting the fill
property.
The available fill
values are:
solid
(Default)—Sets abackground
color andsolid borders
.outline
—Sets atransparent background
andsolid borders
.
Cutout Border
You can specify whether or not to render an additional "cutout" border around the content for the Badge or BadgeContainer.
The available cutoutBorder
values are:
false
(Default)true