import * as React from "react"; import type { ResponsiveValue } from "../../types/responsive"; import type { DistributiveOmit } from "../../utils/styled"; import { Box, type BoxProps } from "../Box/Box"; export type FlexProps = DistributiveOmit & { /** * @default "flex" */ display?: ResponsiveValue<"flex" | "none">; /** * Shorthand for `flexDirection`. */ direction?: BoxProps["flexDirection"]; /** * Shorthand for `flexWrap`. */ wrap?: BoxProps["flexWrap"]; /** * Shorthand for `alignItems`. */ align?: BoxProps["alignItems"]; /** * Shorthand for `justifyContent`. */ justify?: BoxProps["justifyContent"]; /** * Shorthand for `flexGrow`. */ grow?: BoxProps["flexGrow"]; /** * Shorthand for `flexShrink`. */ shrink?: BoxProps["flexShrink"]; }; export const Flex = React.forwardRef((props, ref) => { const { direction, wrap, align, justify, grow, shrink, ...rest } = props; return ( ); });