• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

`topbar` progress indicator as a React component

react-topbar-progress-indicator

Build Status Version

topbar progress indicator as a React component

Will simply show() and hide() topbar when the component is respectively mounted and unmounted.

Since topbar is a singleton, using <TopBarProgress /> multiples times will take this in consideration. This means that hide() will only be called when all <TopBarProgress /> have been unmounted.

For example, if you render 2 <TopBarProgress /> and unmount one (eg: you are doing 2 async things and only once is done), hide() won't be called. You will need to have both instances unmounted.

Installation

npm install react-topbar-progress-indicator
## or
yarn add react-topbar-progress-indicator

Usage

import TopBarProgress from "react-topbar-progress-indicator";

TopBarProgress.config({
  barColors: {
    "0": "#fff",
    "1.0": "#fff"
  },
  shadowBlur: 5
});

const YourThing = () => {
  return <div>{this.state.loading && <TopBarProgress />}</div>;
};

Config

Since topbar is a singleton, you should configure via Topbar.config().

barThickness (Integer, px)

The progress bar thickness in px (default: 3).

barColors (Object { progress: color })

Object of gradient color stops used to draw the progress bar.

Example:

  barColors: {
    "0": "#f00",
    "0.5": "#0f0",
    "1.0": "#00f",
  },

shadowBlur

Integer of the shadow blur in px (default: 10).

shadowColor

String that represent the shadow color (hexa, default: #000).


Changelog

Check the changelog for more informations about recent releases. You might also find releases notes on GitHub.

Contribute

⇄ Pull requests and β˜… Stars are always welcome.

Please read the contribution guidelines before contributing.

Code of Conduct

We want the community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.

License

MIT

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

More Repositories

1

postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.
JavaScript
5,302
star
2

phenomic

DEPRECATED. Please use Next.js instead.
JavaScript
3,218
star
3

pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
JavaScript
1,440
star
4

compass-recipes

UNMAINTAINED compass/sass mixins and snippets.
CSS
507
star
5

react-svg-inline

DEPRECATED, I recommend you the tool SVGR
JavaScript
224
star
6

setup

My setup... dotfiles, aliases, functions, preferences, apps. Everything.
Shell
111
star
7

github-release-from-changelog

Create GitHub releases from your changelog
JavaScript
64
star
8

react-from-svg

Transform SVG files into React components (native | web, JavaScript | Reason/ReScript).
ReScript
60
star
9

reduce-css-calc

Reduce CSS calc() function at the maximum
JavaScript
55
star
10

gulp-cssnext

DEPRECATED. Use gulp-postcss instead.
JavaScript
52
star
11

react-event-as-prop

React Higher-Order Components to get event like hover, focus, active as props
JavaScript
48
star
12

npmpub

Another better `npm publish`
JavaScript
48
star
13

rescript-next

ReScript bindings for Next.js
ReScript
47
star
14

tab

Pretty new tab for you browser.
JavaScript
47
star
15

react-multiversal

React components that works everywhere (iOS, Android, Web, Node)
ReScript
44
star
16

cssnext-loader

# DEPRECATED. Use postcss-loader instead.
JavaScript
43
star
17

LifeTime

LifeTime app
ReScript
38
star
18

jsx-test-helpers

JavaScript
36
star
19

moox

MoOx personal website
ReScript
35
star
20

eslint-config-i-am-meticulous

An ESLint shareable config for very meticulous people
JavaScript
32
star
21

frontend-hot-starterkit

Frontend app boilerplate with hot reload / React / cssnext.
JavaScript
32
star
22

git-init

32
star
23

react-native-transparent-status-and-navigation-bar

React Native module to handle transparent status and navigation bar.
Java
25
star
24

markdown-to-json

Transform markdown content as a JSON for easy rendering for front-end with React, React Native & similar
JavaScript
21
star
25

HideTheNotch

https://moox.io/apps/hide-the-notch/
JavaScript
20
star
26

sass-prism-theme-base

A prism.js theme base in Sass. Including an example inspired by Monokai.
18
star
27

parallaxify

Add parallax effect to your page when scrolling. No dependency.
JavaScript
17
star
28

rc-loader

Runtime configuration loader that supports YAML, JSON or JS.
JavaScript
16
star
29

multili

Function to remove indentation in multi-lines template literals (string) based on the shortest indented line.
JavaScript
16
star
30

reason-react-native-boilerplate

Reason React Native (+Web) template
JavaScript
15
star
31

webpack-easy-config

Webpack config, made easy
JavaScript
15
star
32

atom-smart-tab-name

Provide smarter tab names form Atom editor.
CoffeeScript
14
star
33

jest-ava-api

AVA API for Jest
JavaScript
13
star
34

metalsmith-react

Metalsmith plugin to use React as a template engine
JavaScript
12
star
35

reduce-function-call

Reduce function calls in a string, using a callback
JavaScript
12
star
36

react-native-boilerplate

React Native (+Web) template
JavaScript
11
star
37

postcss-message-helpers

PostCSS helpers to throw or output GNU style messages
JavaScript
10
star
38

dame.bio

Former D'Γ‚me Bio front-end
ReScript
10
star
39

grunt-cssnext

# DEPRECATED. Use grunt-postcss instead.
JavaScript
8
star
40

react-toulouse

♻️ Meetups et Workshops React sur Toulouse.
JavaScript
8
star
41

vscode-color-theme-dark-sea

VS Code color theme inspired by Atom Duo Tone Dark Sea.
8
star
42

fly-cssnext

# DEPRECATED. Use fly-postcss instead.
JavaScript
7
star
43

cssnext-connect

# DEPRECATED. Use postcss-middleware instead.
CSS
7
star
44

firefox-compact-theme

UNMAINTAINED - A simple Firefox compact theme
CSS
7
star
45

atom-jour-nuit

Like F.lux, for Atom thems. Auto switch UI/Syntax themes depending on the time of the day.
JavaScript
7
star
46

metalsmith-filenames

Metalsmith plugin to add filenames to entries
JavaScript
6
star
47

metalsmith-rename

metalsmith plugin to rename entries
JavaScript
6
star
48

atom-syntax-theme-to-highlights-css

CLI tool to convert Atom syntax theme to CSS for code highlighted with atom/highlights
JavaScript
6
star
49

iTerm-theme-Monokai-Soda

6
star
50

cssnextify

# DEPRECATED. Use browserify-postcss instead.
JavaScript
6
star
51

metalsmith-url

Metalsmith plugin to add url to entries from transformation on filenames
JavaScript
5
star
52

social-buttons

Simple and assets free social button
HTML
4
star
53

docss

A simple CSS styleguide generator, from docblocks
JavaScript
4
star
54

Url.js

An tiny tool to manage URL with javascript
JavaScript
3
star
55

duo-cssnext

# DEPRECATED. Use duo-postcss instead.
JavaScript
3
star
56

metalsmith-md

Metalsmith plugin to transform markdown to html
JavaScript
3
star
57

dateranger

A simple component to select date ranges, using Pikaday
JavaScript
3
star
58

LimeChat-theme-Monokai-Soda

A Limechat Monokai Soda theme
CSS
3
star
59

responsive-menu

A JavaScript plugin to enhance your simple CSS (drop down?) menu. Add timing for better desktop experience & responsive behavior for touch device. Using jQuery or Zepto (& optionally Sass)
JavaScript
3
star
60

jQuery.External-Links

A jQuery plugin to easyli manage externals links (new window behavior if not the same domain + google analytics tracking)
JavaScript
3
star
61

localstorage

Simple localStorage abstraction
JavaScript
2
star
62

broccoli-cssnext

# DEPRECATED. Use broccoli-postcss instead.
JavaScript
2
star
63

simple-json-fetch

whatwg fetch(), wrapped and enhanced for JSON response
JavaScript
2
star
64

react-component-unit-testing-example

Easy unit testing React components (without a DOM)
JavaScript
2
star
65

jQuery.Loading-Indicator

JavaScript
2
star
66

jQuery.Ajaction

A Javascript jQuery plugin to handle very easily "ajax like" action. The plugin can be used with just a line of js on the client-side, and with json response on the server side.
JavaScript
1
star
67

grunt-fontcustom

Compile SVG and EPS to Fonts (and CSS)
JavaScript
1
star
68

Check

A simple todo list using html/js
JavaScript
1
star
69

Calendar.app-counter

Read, parse, count hours/days for a Calendar.app search list result
JavaScript
1
star
70

puppet-btsync

Install BitTorrent Sync.
Shell
1
star
71

sass-flex-medias

Some helpers for responsive, intrinsic ratio medias (video, iframe, objects, images...). It also avoid browsers reflow.
CSS
1
star