UNPKG

next-nprogress-emotion

Version:

Theme aware NProgress component to use in Next.js apps using Emotion or ThemeUI.

28 lines (27 loc) 902 B
/// <reference types="react" /> import NProgress from 'nprogress'; interface NProgressContainerProps { /** * Refers to a color found in the theme eg. 'primary', 'secondary', * or any valid css color eg. "#fff" */ color: string; /** Number of miliseconds to wait before showing loading bar */ showAfterMs: number; /** Display a spinner with the loading bar */ spinner: boolean; /** nprogress [configuration object](https://github.com/rstacruz/nprogress#configuration) */ options?: NProgress.NProgressOptions; } /** * Theme aware drop in NProgress component. */ declare const NProgressContainer: { ({ color, spinner, showAfterMs, options, }: NProgressContainerProps): JSX.Element; defaultProps: { color: string; showAfterMs: number; spinner: boolean; }; }; export default NProgressContainer;