getTagColorsFromName() function
getTagColorsFromName() function
Returns tag badge background and border colors based on hashed tag name.
Signature
export declare function getTagColorsFromName(name?: string): {
color: string;
borderColor: string;
};
Import
import { getTagColorsFromName } from '@grafana/ui';
Parameters
Parameter | Type | Description |
---|---|---|
name | string | tag name |
Returns:
{ color: string; borderColor: string; }