@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
26 lines (25 loc) • 1.26 kB
TypeScript
import React from "react";
export interface OverviewItemActionsProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Display it only when the parent `OverviewItem` is hovered or focused.
*/
hiddenInteractions?: boolean;
/**
* Delay the rendering of the children by a time in milliseconds.
* Could be used to prevent browser freezes for the initial `OverviewItem` rendering.
* In general, it is better to fix the cause, i.e. action elements that are expensive to initialize/render should be
* optimized or replaced etc. This workaround only prevents the browser from getting blocked completely and does NOT
* solve the actual performance issue.
*/
delayDisplayChildren?: number;
/**
* Display element while the rendering of the actual children is delayed.
*/
delaySkeleton?: JSX.Element;
}
/**
* Contains an arbitrary number of elements for user-interactions.
* It does not make sense to include more than 1 or 2 of these elements within `OverviewItem`.
*/
export declare const OverviewItemActions: ({ children, className, hiddenInteractions, delayDisplayChildren, delaySkeleton, ...restProps }: OverviewItemActionsProps) => React.JSX.Element;
export default OverviewItemActions;