@mcansh/next-nprogress
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@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} />
      </>
    );
  }
}

/@mcansh/next-nprogress/

    Package Sidebar

    Install

    npm i @mcansh/next-nprogress

    Weekly Downloads

    2

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    30 kB

    Total Files

    12

    Last publish

    Collaborators

    • mcansh