Socket
Book a DemoInstallSign in
Socket

next-styled-nprogress

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

next-styled-nprogress

Add NProgress loader between pages in your Next.js App

unpublished
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
25
212.5%
Maintainers
1
Weekly downloads
 
Created
Source

next-styled-nprogress

package version package downloads standard-readme compliant package license make a pull request

Add NProgress loader between pages in your Next.js App

Table of Contents

Install

This project uses node and npm. It requires Next, React, nprogress and styled-components as peer dependencies,

$ npm install next-styled-nprogress
$ # OR
$ yarn add next-styled-nprogress

Usage

In _app.js:

import PageNProgress from 'next-styled-nprogress'

class Example extends App {
    // ...
    render () {

        return (
        <Container>
            <GlobalStyles />

            <PageNProgress
                color='#F2A83B'
                showSpinner={false}
                height='5px'
                delay={200}
            />

            <Component />
        </Container>
        )
    }
}

NProgress can also now be used across site, as the styles are already included:

import React from 'react'
import NProgress from  'nprogress'


const Example = () => {

    const handleClick = () => {
        NProgress.start()

        setTimeout(() => {
            NProgress.done()
        }, 1000)
    }

    return <button type="button" onClick={handleClick}>Click me</button>
}

Contribute

  • Fork it and create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am "Add some feature"
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

License

MIT

FAQs

Package last updated on 24 Nov 2025

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