feat(ui): support native HTML attributes on Grid components

Extend GridProps and GridItemProps to accept standard HTML div
attributes by inheriting from React.HTMLAttributes<HTMLDivElement>.
The rest props are spread onto the underlying div elements.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-05 09:39:07 +01:00
parent a733fd1a68
commit 7960d54215
5 changed files with 27 additions and 14 deletions
-7
View File
@@ -1,7 +0,0 @@
---
'@backstage/ui': patch
---
Added support for native HTML div attributes on the `Flex` component.
**Affected components:** Flex
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Added support for native HTML div attributes on the `Flex`, `Grid`, and `Grid.Item` components.
**Affected components:** Flex, Grid, Grid.Item