UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

25 lines (24 loc) 1.25 kB
import React from "react"; export interface FlexibleLayoutItemProps extends React.HTMLAttributes<HTMLDivElement> { /** * Defines the ability for the item to grow. * The factor defines how much space the item would take up compared to the other items with a grow factor greater than zero. * Must be equal or greater than zero. * With a factor of `0` the item cannot grow. */ growFactor?: number; /** * Defines the ability for the item to shrink. * The factor defines how strong the shrink effect has impact on the item compared to the other items with a shrink factor greater than zero. * Must be equal or greater than zero. * With a factor of `0` the item cannot shrink. */ shrinkFactor?: number; } /** * Simple layout helper to organize items into rows and columns that are not necessarily need to be aligned. * `FlexibleLayoutItem`s can contain `FlexibleLayoutContainer` for more partitions. * `FlexibleLayoutItem` siblings will share all available space from the `FlexibleLayoutContainer` container. */ export declare const FlexibleLayoutItem: React.ForwardRefExoticComponent<FlexibleLayoutItemProps & React.RefAttributes<HTMLDivElement>>; export default FlexibleLayoutItem;