Socket
Book a DemoInstallSign in
Socket

@mcansh/next-nprogress

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcansh/next-nprogress

Easily integrate NProgress inside your Next.js app using styled-components

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts