@grafana/ui
Version:
Grafana Components Library
13 lines (12 loc) • 432 B
TypeScript
import React from 'react';
import { DataFrame, RegistryItem, FieldMatcherInfo } from '@grafana/data';
export interface FieldMatcherUIRegistryItem<TOptions> extends RegistryItem {
component: React.ComponentType<MatcherUIProps<TOptions>>;
matcher: FieldMatcherInfo<TOptions>;
}
export interface MatcherUIProps<T> {
matcher: FieldMatcherInfo<T>;
data: DataFrame[];
options: T;
onChange: (options: T) => void;
}