UNPKG

@grafana/ui

Version:
21 lines (20 loc) 666 B
import { HTMLAttributes } from 'react'; import * as React from 'react'; import { HighlightPart } from '../../types/completion'; type OnLabelClick = (name: string, value: string | undefined, event: React.MouseEvent<HTMLElement>) => void; interface Props extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> { name: string; active?: boolean; loading?: boolean; searchTerm?: string; value?: string; facets?: number; title?: string; highlightParts?: HighlightPart[]; onClick?: OnLabelClick; } /** * @internal */ export declare const Label: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>; export {};