Skip to content

Commit b49a09c

Browse files
committed
bring back as prop to FlexItem
1 parent dc5ec20 commit b49a09c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.changeset/dirty-dolls-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@moblin/chakra-ui": patch
3+
---
4+
5+
allow as prop for FlexItem

packages/chakra-ui/src/Flex.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { chakra, forwardRef, SystemProps } from "@chakra-v2/react";
1+
import {
2+
chakra,
3+
forwardRef,
4+
SystemProps,
5+
type MergeWithAs,
6+
} from "@chakra-v2/react";
27
import {
38
__DEV__,
49
AlignContent,
@@ -29,10 +34,12 @@ export const FlexItem = ({
2934
basis = "auto",
3035
children,
3136
overflowAnchor,
37+
as,
3238
...props
33-
}: FlexItemProps) => {
39+
}: MergeWithAs<{}, {}, FlexItemProps>) => {
3440
return (
3541
<chakra.div
42+
as={as}
3643
display="flex"
3744
overflow="visible"
3845
alignItems="stretch"

0 commit comments

Comments
 (0)