light-layout-component
Version:
easy and useful layout component
15 lines (14 loc) • 574 B
TypeScript
import { PropsWithChildren } from "react";
import { CSS } from "styled-components/dist/types";
import { NumberUnitType } from "../../types";
type DirectionType = CSS.Property.FlexDirection;
type JustifyType = CSS.Property.JustifyContent;
type AlignType = CSS.Property.AlignItems;
interface FlexCssProps {
direction?: DirectionType;
justify?: JustifyType;
align?: AlignType;
gap?: NumberUnitType;
}
declare const Flex: ({ direction, justify, align, ...props }: PropsWithChildren<FlexCssProps>) => import("react/jsx-runtime").JSX.Element;
export default Flex;