New to Kendo UI for VueStart a free 30-day trial

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.
Change Theme
Theme
Loading ...

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 to 1px.
  • medium (Default)—Sets the border radius to 2px.
  • large—Sets the border radius to 4px.
  • full—Sets the border radius to 4px.
  • null—Passing null to the rounded property gives us the option to define a custom CSS class that defines the border-radius of the Button.
Change Theme
Theme
Loading ...

Size

The Badge and BadgeContainer allow you to set different sizes to the output badge.

The available size values are:

  • small — Sets the padding to 2px and 8px.
  • medium(Default) — Sets the padding to 4px and 8px.
  • large — Sets the padding to 6px and 8px.
  • null — Passing null to the size property gives us the option to define a custom CSS class that sets the padding of the Button.
Change Theme
Theme
Loading ...

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 a background color and solid borders.
  • outline—Sets a transparent background and solid borders.
Change Theme
Theme
Loading ...

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
Change Theme
Theme
Loading ...