Interface: StatusBadgeProperties
Defined in: src/components/common/StatusBadge.tsx:58
Props for the StatusBadge component
Extendsโ
Propertiesโ
children?โ
readonly
optional
children:ReactNode
Defined in: shared/types/componentProps.ts:33
Component content (text, elements, or other components)
Inherited fromโ
CoreComponentProperties
.children
className?โ
readonly
optional
className:string
Defined in: shared/types/componentProps.ts:35
Additional CSS classes for styling customization
Inherited fromโ
CoreComponentProperties
.className
disabled?โ
readonly
optional
disabled:boolean
Defined in: shared/types/componentProps.ts:37
Whether the component is disabled and non-interactive
Inherited fromโ
CoreComponentProperties
.disabled
formatter()?โ
readonly
optional
formatter: (label
:string
,status
:MonitorStatus
) =>string
Defined in: src/components/common/StatusBadge.tsx:60
Optional custom formatter for label and status display
Parametersโ
labelโ
string
statusโ
Returnsโ
string
labelโ
readonly
label: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?โ
readonly
optional
showIcon:boolean
Defined in: src/components/common/StatusBadge.tsx:68
Whether to show the status icon
size?โ
readonly
optional
size:"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โ
readonly
status:MonitorStatus
Defined in: src/components/common/StatusBadge.tsx:72
Current status to display