Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

VizLayoutProps interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature

typescript
export interface VizLayoutProps 

Import

typescript
import { VizLayoutProps } from '@grafana/ui';

Properties

PropertyTypeDescription
children(width: number, height: number) => React.ReactNode(BETA)
heightnumber(BETA)
legendReact.ReactElement<VizLayoutLegendProps> | null(BETA)
widthnumber(BETA)

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

children property

Signature

typescript
children: (width: number, height: number) => React.ReactNode;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

height property

Signature

typescript
height: number;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

legend property

Signature

typescript
legend?: React.ReactElement<VizLayoutLegendProps> | null;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

width property

Signature

typescript
width: number;