Appearance
The Badge component provides many predefined appearance options such as different shapes, sizes, theme colors and optional cutout borders.
Theme Color
The Badge allows you to specify predefined theme colors.
The available themeColor values are:
base—Applies coloring based on the base theme color.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.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.
Rounded
The Badge allows you to set the border radius that will be applied to its edges.
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 9999px.none—Sets the border radius to 0.
Size
The Badge allows you to set different sizes.
The available size values are:
smallmedium(Default)large
FillMode
The Badge enables you to create solid, tint, or outline badges through the fillMode property.
Use tint for a subtle background and border with a contrasting text color based on the selected theme color.
The available fillMode values are:
solid(Default)tintoutline
Cutout Border
The Badge allows you to specify whether or not to render an additional "cutout" border around its content.
The available cutoutBorder values are:
false(Default)true