@octopusdeploy/design-system-components
Version:
The design systems component library.
19 lines (18 loc) • 683 B
TypeScript
export declare const badgeStatuses: readonly ["healthy", "healthy-with-warnings", "unavailable", "unhealthy", "unknown", "disabled"];
export type BadgeStatus = (typeof badgeStatuses)[number];
type BadgeSize = "small" | "medium";
export interface StatusBadgeProps {
/**
* The status to display.
* Determines the icon, label, and color scheme of the badge.
*/
status: BadgeStatus;
/**
* Whether to show the text label alongside the icon.
* @default false
*/
showLabel?: boolean;
size?: BadgeSize;
}
export declare function StatusBadge({ status, size, showLabel }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
export {};