matrix-react-sdk
Version:
SDK for matrix.org using React
37 lines (36 loc) • 758 B
TypeScript
import React from "react";
type FlexProps = {
/**
* The type of the HTML element
* @default div
*/
as?: string;
/**
* The CSS class name.
*/
className?: string;
/**
* the on click event callback
*/
onClick?: (e: React.MouseEvent) => void;
/**
* The flex space to use
* @default null
*/
flex?: string | null;
/**
* The flex shrink factor
* @default null
*/
shrink?: string | null;
/**
* The flex grow factor
* @default null
*/
grow?: string | null;
};
/**
* A flex child helper
*/
export declare function Box({ as, flex, shrink, grow, className, children, ...props }: React.PropsWithChildren<FlexProps>): JSX.Element;
export {};