This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiBadgeProps

BadgeProps interface

Signature

export interface BadgeProps extends HTMLAttributes<HTMLDivElement> 

Import

import { BadgeProps } from '@grafana/ui';

Properties

Property Type Description
color BadgeColor
icon IconName
text React.ReactNode
tooltip string

color property

Signature

color: BadgeColor;

icon property

Signature

icon?: IconName;

text property

Signature

text: React.ReactNode;

tooltip property

Signature

tooltip?: string;