UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

30 lines (29 loc) 1.19 kB
declare const kindGroupColors: { readonly workloads: "oklch(67.85% 0.12 182.18)"; readonly storage: "oklch(67.85% 0.12 46.47)"; readonly network: "oklch(67.85% 0.12 225.16)"; readonly security: "oklch(67.85% 0.12 275.16)"; readonly configuration: "oklch(67.85% 0.12 320.03)"; readonly other: "oklch(67.85% 0 215.25)"; }; export declare const getKindGroupColor: (group: keyof typeof kindGroupColors) => "oklch(67.85% 0.12 182.18)" | "oklch(67.85% 0.12 46.47)" | "oklch(67.85% 0.12 225.16)" | "oklch(67.85% 0.12 275.16)" | "oklch(67.85% 0.12 320.03)" | "oklch(67.85% 0 215.25)"; /** * Icon for the Kube resource * Color is based on the resource category (workload,storage, etc) * * Icons are taken from * https://github.com/kubernetes/community/tree/master/icons * * @param params.kind - Resource kind * @param params.apiGroup - Resource API group * @param params.width - width in css units * @param params.height - width in css units * @returns */ export declare function KubeIcon({ kind, apiGroup, width, height, }: { kind: string; apiGroup?: string; width?: string; height?: string; }): import("react/jsx-runtime").JSX.Element; export {};