import * as React from "react"; import { type Breakpoints } from "../styles"; import type { MergeElementProps } from "../typings"; declare type ResponsivePropType = T | Partial>; interface FlexBaseProps { /** * The content of the component. */ children?: React.ReactNode; /** * Append to the classNames applied to the component so you can override or * extend the styles. */ className?: string; /** * The variant of the flexbox. * @default "block" */ variant?: ResponsivePropType<"block" | "inline">; /** * Changes how flex items wrap in the flexbox. * @default "nowrap" */ wrap?: ResponsivePropType<"nowrap" | "wrap" | "wrap-reverse">; /** * Sets the gap between flex items in the flexbox. */ gap?: ResponsivePropType<"xxs" | "xs" | "sm" | "md" | "lg" | "xlg">; /** * Sets the direction of flex items in the flexbox. * @default "row" */ direction?: ResponsivePropType<"row" | "column" | "row-reverse" | "column-reverse">; /** * Changes the alignment of flex items on the main axis in the flexbox. * @default "start" */ mainAxisAlignment?: ResponsivePropType<"start" | "end" | "center" | "between" | "around" | "evenly">; /** * Changes the alignment of flex items on the cross axis in the flexbox. * @default "stretch" */ crossAxisAlignment?: ResponsivePropType<"start" | "end" | "center" | "baseline" | "stretch">; /** * Aligns flex items together on the cross axis in the flexbox. * (Note: This property has no effect on single rows of flex items.) * @default "start" */ contentAlignment?: ResponsivePropType<"start" | "end" | "center" | "between" | "around" | "evenly" | "stretch">; } export declare type FlexProps = MergeElementProps; declare type Component = { (props: FlexProps): JSX.Element; propTypes?: React.WeakValidationMap | undefined; displayName?: string | undefined; }; declare const Flex: Component; export default Flex;