UNPKG

react-layout-kit

Version:
25 lines (24 loc) 761 B
import type { ContentDistribution, ContentPosition, DivProps, FlexDirection } from "../type"; import { FC } from 'react'; export declare type CommonSpaceNumber = 2 | 4 | 8 | 12 | 16 | 24; export interface IFlexbox { /** * @title 是否横向 */ horizontal?: boolean; direction?: FlexDirection; distribution?: ContentDistribution; justify?: ContentDistribution; align?: ContentPosition; gap?: CommonSpaceNumber | number; width?: number | string; height?: number | string; padding?: string | number | CommonSpaceNumber; flex?: number | string; /** * 是否显示 */ visible?: boolean; } export declare type FlexboxProps = IFlexbox & DivProps; export declare const Flexbox: FC<FlexboxProps>;