@grafana/ui
Version:
Grafana Components Library
39 lines (38 loc) • 943 B
TypeScript
import { type FC, type ComponentType } from 'react';
import * as React from 'react';
import { type LegendPlacement } from '@grafana/schema';
/**
* @beta
*/
export interface VizLayoutProps {
width: number;
height: number;
legend?: React.ReactElement<VizLayoutLegendProps> | null;
children: (width: number, height: number) => React.ReactNode;
}
/**
* @beta
*/
export interface VizLayoutComponentType extends FC<VizLayoutProps> {
Legend: ComponentType<VizLayoutLegendProps>;
}
/**
* @beta
*
* https://developers.grafana.com/ui/latest/index.html?path=/docs/plugins-vizlayout--docs
*/
export declare const VizLayout: VizLayoutComponentType;
/**
* @beta
*/
export interface VizLayoutLegendProps {
placement: LegendPlacement;
children: React.ReactNode;
maxHeight?: string;
maxWidth?: string;
width?: number | string;
}
/**
* @beta
*/
export declare const VizLayoutLegend: FC<VizLayoutLegendProps>;