BadgeProps
Represents the props of the KendoReact Badge component.
Definition
Package:@progress/kendo-react-indicators
Properties
align?
{ horizontal: "start" | "end"; vertical: "top" | "bottom" }
Specifies the alignment of the Badge.
The possible keys are:
horizontal— Defines the possible horizontal alignment of the Badge.'start'—Uses the start point of the parent element.'end'(Default)—Uses the end point of the parent element.nullNo horizontal alignment.
vertical— Defines the possible vertical alignment of the Badge.'top'(Default)—Uses the top point of the parent element.'bottom'—Uses the bottom point of the parent element.nullNo horizontal alignment.
children?
ReactNode
The React elements that will be rendered inside the Badge.
className?
string
Specifies a list of CSS classes that will be added to the Badge.
cutoutBorder?
boolean
Specifies wether or not to render additional "cutout" border around the Badge.
The possible values are:
truefalse(Default)
dir?
string
Represents the dir HTML attribute. This is used to switch from LTR to RTL.
fillMode?
"solid" | "outline"
Specifies the appearance fill style of the Badge.
The possible values are:
solidoutline
undefined (theme-controlled)
position?
"edge" | "outside" | "inside"
Specifies the position of the Badge relative to the edge of the container element.
The possible values are:
'edge'—The center of the Badge is positioned on the edge of the container element.'outside'—The Badge is entirely positioned outside the edge of the container element.'inside'—The Badge is entirely positioned inside the edge of the the container element.
rounded?
"small" | "medium" | "large" | "full" | "none"
Specifies the roundness of the Badge.
The possible values are:
- small
- medium
- large
- full
- none
undefined (theme-controlled)
size?
"small" | "medium" | "large"
Specifies the size of the Badge.
The possible values are:
smallmediumlarge
undefined (theme-controlled)
style?
CSSProperties
Sets additional CSS styles to the Badge.
themeColor?
"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error"
Specifies the theme color of the Badge.
The possible values are:
base—Applies coloring based on thebasetheme color.primary—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.