feat(ui): support native HTML attributes on Flex component

Extend FlexProps to accept standard HTML div attributes (e.g. onClick,
id, aria-*) by inheriting from React.HTMLAttributes<HTMLDivElement>.
The rest props are spread onto the underlying div element.

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