The Badge provides a set of predefined appearance options such as various shapes, sizes, theme colors, and optional cutout borders.
The Badge allows you to specify predefined theme colors. The theme color will be applied as a background and border color while amending the text color accordingly.
themeColor values are:
primary(Default)—Applies coloring based on the primary theme color.
secondary—Applies coloring based on the secondary theme color.
tertiary— Applies coloring based on the tertiary theme color.
inherit— Applies the inherited coloring value.
info—Applies coloring based on the info theme color.
success— Applies coloring based on the success theme color.
warning— Applies coloring based on the warning theme color.
error— Applies coloring based on the error theme color.
dark— Applies coloring based on the dark theme color.
light— Applies coloring based on the light theme color.
inverse— Applies coloring based on the inverted theme color.
The Badge allows you to set different shapes.
shape values are:
circle(Default)—Applies a circular shape to the Badge.
rectangle—Applies a rectangular shape to the Badge.
rounded—Applies a rounded shape to the Badge.
dot—Applies a dot shape to the Badge.
pill—Applies a border radius equal to half of the height of the Badge.
The Badge allows you to set different sizes.
size values are:
The Badge enables you to set styling options and create solid or outline badges by setting the
fill values are:
The Badge allows you to specify whether or not to render an additional
cutout border around its content by using the
cutoutBorder property. By default,
cutoutBorder is set to