# @aldabil/next-progress

> Probably the easiest progress bar/skeleton for Next.js

Latest version **0.0.4** (published 2021-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aldabil/next-progress
pnpm add @aldabil/next-progress
yarn add @aldabil/next-progress
bun add @aldabil/next-progress
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-09-08 |
| First published | 2021-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Aldabil |
| Maintainers | aldabil21 |
| Keywords | Nextjs, progress, loader, skeleton |

## Links

- npm: https://www.npmjs.com/package/@aldabil/next-progress
- Repository: https://github.com/aldabil21/next-progress
- Homepage: https://github.com/aldabil21/next-progress#readme
- Issues: https://github.com/aldabil21/next-progress/issues
- npm.io page: https://npm.io/package/@aldabil/next-progress

## Recent versions

- 0.0.4 (latest) — 2021-09-08
- 0.0.3 — 2021-09-08
- 0.0.2 — 2021-08-06
- 0.0.1 — 2021-08-06

## README

# Zero-dependency Progress Bar/Skeleton

[![npm package](https://badgen.net/npm/v/@aldabil/next-progress)](https://www.npmjs.com/package/@aldabil/next-progress)
[![Follow on Twitter](https://badgen.net/twitter/follow/aldabil21?label=@aldabil21)](https://twitter.com/intent/follow?screen_name=aldabil21)

## Install

```jsx
npm i @aldabil/next-progress
```

## Usage

In your custom `_app.tsx|js`.

```jsx
//...some impotrs...
import { Router } from "next/router";
import Progress from "@aldabil/next-progress";

//Progress setup
Progress.configure({
  type: "bar",
  background:
    "linear-gradient(90deg, rgba(251,175,0,1) 0%, rgba(251,175,0,1) 81%, rgba(127,137,0,1) 100%)",
  height: 3,
  //svg: "used with type='fullpage' ",
});
Router.events.on("routeChangeStart", () => Progress.start());
Router.events.on("routeChangeComplete", () => Progress.complete());
Router.events.on("routeChangeError", () => Progress.complete());

const MyApp = (props: MyAppProps) => {
  //...
};
```

And that's it.

Bar [Sandbox](https://codesandbox.io/s/bar-type-dzwgd)
[![Bar type](https://aldabil.me/projects/next-progress/bar-type.gif "Bar Type")](https://aldabil.me/projects/next-progress/bar-type.gif)

SVG [Sandbox](https://codesandbox.io/s/fullpage-type-w3ri2)
[![Bar type](https://aldabil.me/projects/next-progress/fullpage-type.gif "Bar Type")](https://aldabil.me/projects/next-progress/fullpage-type.gif)

#### Options

| Option     | Value                                                                                                    |
| ---------- | -------------------------------------------------------------------------------------------------------- |
| type       | bar / fullpage. When use fullpage type, you need to provide svg as a string toload with skeleton effect. |
| background | string - background CSS property. bar color or fullpage background                                       |
| height     | number. bar height or svg height                                                                         |
| svg        | string. Like `` `<svg> .... </svg>` `` with backticks.                                                   |

---
_Source: https://npm.io/package/@aldabil/next-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
