0.0.9-2 • Published 4 months ago

@iamaeron/qwik-nprogress v0.0.9-2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Qwik NProgress

Qwik component of NProgress for Qwik City.

Installation

Use your preferred package manager, but this snippet uses pnpm:

pnpm add @iamaeron/qwik-nprogress nprogress

Usage

It is suggested to add the component in your layout file like src/routes/layout.tsx so that the progress bar will show on any route/url changes.

import { QwikNProgress } from "@iamaeron/qwik-nprogress";
import { Slot } from "builder.io/qwik";

export default component$(() => {
  return (
    <>
      <QwikNProgress />
      <Slot />
    </>
  );
});

Customization

<QwikNProgress /> provides an option prop to change your NProgress settings. Additionally, you can tweak the bar's width and height, the spinner's size and thickness, and their color.

Example:

<QwikNProgress
  options={{
    // ... nprogress settings,
    color: "#ef4444",
    height: 4,
    spinner: {
      size: 20,
      thickness: 4,
    },
  }}
/>

Options

color

  • allows you to change the bar's, and spinner color.
  • default - #29d

height

  • allows you to change the bar's height.
  • default - 2px

spinner.size

  • allows you to change the spinner's size (width/height).
  • default - 18px

spinner.thickness

  • allows you to change the spinner's thickness.
  • default - 2px
0.0.9-2

4 months ago

0.0.9-1

4 months ago

0.0.9

4 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago