Navigation: Expose new props to extend Page/PluginPage (#58465)

* add extensions and customisation to `Page`

* adjust alignment
This commit is contained in:
Ashley Harrison
2022-11-09 09:05:01 +00:00
committed by GitHub
parent 9778d642df
commit b3c761aaa7
8 changed files with 162 additions and 50 deletions
@@ -2,7 +2,18 @@ import React from 'react';
import { NavModelItem, PageLayoutType } from '@grafana/data';
export interface PageInfoItem {
label: string;
value: React.ReactNode;
}
export interface PluginPageProps {
/** Can be used to place actions inline with the heading */
info?: PageInfoItem[];
/** Can be used to place actions inline with the heading */
actions?: React.ReactNode;
/** Can be used to customize rendering of title */
renderTitle?: (title: string) => React.ReactNode;
/** Shown under main heading */
subTitle?: React.ReactNode;
pageNav?: NavModelItem;