From 75e1f7aa5e6d7f0f4d49afb1f9d35e65b06f39bc Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Mon, 29 Jan 2024 15:54:50 +0100 Subject: [PATCH] Grafana/ui: Add deprecation notices to the legacy layout components (#81328) --- packages/grafana-ui/src/components/Layout/Layout.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/grafana-ui/src/components/Layout/Layout.tsx b/packages/grafana-ui/src/components/Layout/Layout.tsx index d56b07d4b6b..7fcd44af454 100644 --- a/packages/grafana-ui/src/components/Layout/Layout.tsx +++ b/packages/grafana-ui/src/components/Layout/Layout.tsx @@ -30,6 +30,9 @@ export interface ContainerProps { shrink?: number; } +/** + * @deprecated use Stack component instead + */ export const Layout = ({ children, orientation = Orientation.Horizontal, @@ -58,6 +61,9 @@ export const Layout = ({ ); }; +/** + * @deprecated use Stack component instead + */ export const HorizontalGroup = ({ children, spacing, @@ -79,6 +85,10 @@ export const HorizontalGroup = ({ {children} ); + +/** + * @deprecated use Stack component with the "column" direction instead + */ export const VerticalGroup = ({ children, spacing,