1.1.2 • Published 5 years ago
@mcansh/next-nprogress v1.1.2
@mcansh/next-progress
Easily integrate NProgress into your Next.js app using styled-components
A note about typescript types
In order to get typescript types be sure to install the types for nprogress
.
$ yarn add -D @types/nprogress
or
$ npm install -D @types/nprogress
Usage
import * as React from 'react';
import App from 'next/app';
import { NProgress } from '@mcansh/next-nprogress';
class MyApp extends App {
render() {
const { Component, pageProps } = this.props;
return (
<>
<NProgress
color="#FE7912"
options={{ trickleSpeed: 50 }}
spinner={false}
/>
<Component {...pageProps} />
</>
);
}
}
1.1.2
5 years ago
1.1.0-canary.7
5 years ago
1.1.0-canary.4
5 years ago
1.1.0-canary.3
5 years ago
1.1.0-canary.2
5 years ago
1.1.0-canary.1
5 years ago
1.1.0-canary.0
5 years ago
1.0.0
5 years ago