Interface: StatusBadgeProperties
Defined in: src/components/common/StatusBadge.tsx:58
Props for the StatusBadge component
Hierarchyโ
Extendsโ
Propertiesโ
children?โ
readonlyoptionalchildren:ReactNode
Defined in: shared/types/componentProps.ts:36
Component content (text, elements, or other components)
Inherited fromโ
CoreComponentProperties.children
className?โ
readonlyoptionalclassName:string
Defined in: shared/types/componentProps.ts:38
Additional CSS classes for styling customization
Inherited fromโ
CoreComponentProperties.className
disabled?โ
readonlyoptionaldisabled:boolean
Defined in: shared/types/componentProps.ts:40
Whether the component is disabled and non-interactive
Inherited fromโ
CoreComponentProperties.disabled
formatter()?โ
readonlyoptionalformatter: (label:string,status:"degraded"|"down"|"up"|"paused"|"pending") =>string
Defined in: src/components/common/StatusBadge.tsx:60
Optional custom formatter for label and status display
Parametersโ
labelโ
string
statusโ
"degraded" | "down" | "up" | "paused" | "pending"
Returnsโ
string
labelโ
readonlylabel:string
Defined in: src/components/common/StatusBadge.tsx:66
Label text to display (expected to be localized by caller)
Exampleโ
(Status, "Current State", "Monitor Status");
showIcon?โ
readonlyoptionalshowIcon:boolean
Defined in: src/components/common/StatusBadge.tsx:68
Whether to show the status icon
size?โ
readonlyoptionalsize:"lg"|"sm"|"xs"|"xl"|"base"|"2xl"|"3xl"|"4xl"
Defined in: src/components/common/StatusBadge.tsx:70
Text size (affects both text and icon sizing)
statusโ
readonlystatus:"degraded"|"down"|"up"|"paused"|"pending"
Defined in: src/components/common/StatusBadge.tsx:72
Current status to display