UNPKG

@eccenca/gui-elements

Version:

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

23 lines (22 loc) 894 B
import React from "react"; export interface ToolbarSectionProps extends React.HTMLAttributes<HTMLDivElement> { /** * Is allowed to allocate more space than necessary to show all children. */ canGrow?: boolean; /** * Allow element to get shrinked if there is not enough space to show all content. * This only makes sense if it contains children that are elastic in its size. */ canShrink?: boolean; /** * Hides content that overflows available space. */ hideOverflow?: boolean; } /** * Provides element to group toolbar elements together. * It can be configured how dynamic it is displayed regarding provided space inside the `Toolbar` parent. */ export declare const ToolbarSection: ({ children, className, canGrow, canShrink, hideOverflow, ...otherProps }: ToolbarSectionProps) => React.JSX.Element; export default ToolbarSection;