We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc5ec20 commit b49a09cCopy full SHA for b49a09c
.changeset/dirty-dolls-drop.md
@@ -0,0 +1,5 @@
1
+---
2
+"@moblin/chakra-ui": patch
3
4
+
5
+allow as prop for FlexItem
packages/chakra-ui/src/Flex.tsx
@@ -1,4 +1,9 @@
-import { chakra, forwardRef, SystemProps } from "@chakra-v2/react";
+import {
+ chakra,
+ forwardRef,
+ SystemProps,
+ type MergeWithAs,
6
+} from "@chakra-v2/react";
7
import {
8
__DEV__,
9
AlignContent,
@@ -29,10 +34,12 @@ export const FlexItem = ({
29
34
basis = "auto",
30
35
children,
31
36
overflowAnchor,
37
+ as,
32
38
...props
33
-}: FlexItemProps) => {
39
+}: MergeWithAs<{}, {}, FlexItemProps>) => {
40
return (
41
<chakra.div
42
+ as={as}
43
display="flex"
44
overflow="visible"
45
alignItems="stretch"
0 commit comments