@vtex/styleguide
Version:
> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))
14 lines (13 loc) • 427 B
TypeScript
import React, { PropsWithChildren } from 'react';
interface Loading {
empty?: boolean;
loading?: boolean | {
renderAs?: () => React.ReactNode;
};
emptyState?: PropsWithChildren<{
label?: string;
}>;
}
export declare function LoadingProvider({ children, empty, loading, emptyState, }: PropsWithChildren<Loading>): JSX.Element;
export declare function useLoadingContext(): Loading;
export {};