@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
28 lines • 967 B
TypeScript
import React from 'react';
import { TableProps } from '../interfaces';
export interface ItemsLoaderProps<T> {
item: null | T;
trackBy?: TableProps.TrackBy<T>;
children: React.ReactNode;
}
export interface ItemsLoaderContentProps<T> {
item: null | T;
loadingStatus: TableProps.LoadingStatus;
renderLoaderPending?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;
renderLoaderLoading?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;
renderLoaderError?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;
renderLoaderEmpty?: (detail: TableProps.RenderLoaderEmptyDetail<T>) => React.ReactNode;
}
export declare function ItemsLoader<T>({
item,
trackBy,
children
}: ItemsLoaderProps<T>): JSX.Element;
export declare function getLoaderContent<T>({
item,
loadingStatus,
renderLoaderPending,
renderLoaderLoading,
renderLoaderError,
renderLoaderEmpty
}: ItemsLoaderContentProps<T>): React.ReactNode;