matrix-react-sdk
Version:
SDK for matrix.org using React
47 lines (46 loc) • 1.19 kB
TypeScript
import React from "react";
type FlexProps = {
/**
* The type of the HTML element
* @default div
*/
as?: string;
/**
* The CSS class name.
*/
className?: string;
/**
* The type of flex container
* @default flex
*/
display?: "flex" | "inline-flex";
/**
* The flow direction of the flex children
* @default row
*/
direction?: "row" | "column" | "row-reverse" | "column-reverse";
/**
* The alingment of the flex children
* @default start
*/
align?: "start" | "center" | "end" | "baseline" | "stretch";
/**
* The justification of the flex children
* @default start
*/
justify?: "start" | "center" | "end" | "space-between";
/**
* The spacing between the flex children, expressed with the CSS unit
* @default 0
*/
gap?: string;
/**
* the on click event callback
*/
onClick?: (e: React.MouseEvent) => void;
};
/**
* A flexbox container helper
*/
export declare function Flex({ as, display, direction, align, justify, gap, className, children, ...props }: React.PropsWithChildren<FlexProps>): JSX.Element;
export {};