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 radiusto1px. - medium (Default)—Sets the
border radiusto2px. - large—Sets the
border radiusto4px. - full—Sets the
border radiusto4px. - null—Passing
nullto theroundedproperty gives us the option to define acustom CSS classthat defines theborder-radiusof the Button.
Size
The Badge and BadgeContainer allow you to set different sizes to the output badge.
The available size values are:
small— Sets thepaddingto2pxand8px.medium(Default) — Sets thepaddingto4pxand8px.large— Sets thepaddingto6pxand8px.null— Passingnullto thesizeproperty gives us the option to define acustom CSS classthat sets thepaddingof 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 abackgroundcolor andsolid borders.outline—Sets atransparent backgroundandsolid 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