import React from 'react'; import { Property } from 'csstype'; import { BoxProps } from '../Box/useBox'; export type FlexProps = BoxProps & { /** * It manages the `inline-flex` property */ inline?: boolean; /** * Adds the `reverse` property to `flex-direction` */ reverse?: boolean; /** * It manages the `flex-wrap` property */ flexWrap?: boolean; /** * It manages the `flex-direction` property */ direction?: Property.FlexDirection; /** * It manages the `align-items` property */ alignItems?: Property.AlignItems; /** * It manages the `align-content` property */ alignContent?: Property.AlignContent; /** * CSS `justify-content` property */ justifyContent?: Property.JustifyContent; /** * CSS `gap` property */ gap?: Property.Gap; /** * CSS `gap` property */ rowGap?: Property.RowGap; /** * CSS `gap` property */ columnGap?: Property.ColumnGap; /** * Multiplier of all indents. For example, if you specify a margin-top equal to 3 (mt = {3}), it will be 12px (3 * 4 = 12). * @default 4 */ scaleIndent?: number; }; /** @deprecated */ export interface IFlexProps extends FlexProps { } export default function useFlex(props: T, ref: React.Ref): [React.ElementType | string, any];