UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

24 lines 1.23 kB
export declare const SHOW_MORE_BUTTON_TEXT = "Show More"; export type InfiniteTableLayoutProps = { /** The table of data to display */ table: React.ReactNode; /** Whether the first page of data is loading. If true, a spinner will be shown */ isLoading: boolean; /** Optional loader to display when loading. Default is a spinner */ loader?: React.ReactNode; /** Whether the first page of data is empty. If true, "No Results" will be shown */ isEmpty: boolean; /** Whether there is a next page of data. If false, the "Show More" button will not be shown */ hasNextPage: boolean; /** Callback for when the "Show More" button is clicked */ onFetchNextPageClicked: () => void; /** Whether the next page of data is loading. If true, the "Show More" button will show a loading state */ isFetchingNextPage: boolean; /** Optional node to display when there are no results. Default is "No results" */ noResults?: React.ReactNode; }; /** * Provides a standardized layout of a table with infinite data. */ export default function InfiniteTableLayout(props: InfiniteTableLayoutProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=InfiniteTableLayout.d.ts.map