UNPKG

redwood-nprogress

Version:

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

24 lines (23 loc) 746 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; /** Display a spinner with the loading bar */ withSpinner?: boolean; /** nprogress [configuration object](https://github.com/rstacruz/nprogress#configuration) */ options?: NProgress.NProgressOptions; } /** * Theme aware drop in NProgress component. */ declare const NProgressContainer: { ({ color, withSpinner, options, }: NProgressContainerProps): JSX.Element; defaultProps: { color: string; }; }; export default NProgressContainer;