Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternfly/pfe-progress-indicator

Package Overview
Dependencies
Maintainers
11
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternfly/pfe-progress-indicator

Progress element for PatternFly Elements

  • 1.0.0-prerelease.23
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-26.34%
Maintainers
11
Weekly downloads
 
Created
Source

PFElements Progress Indicator Element

pfe-progress-indicator is a "loader" that indicates to the user that part of the web page is loading, or waiting on other http events to be ready to use.

Usage

<pfe-progress-indicator pfe-indeterminate>
    <h1>My fallback loading message</h1>
</pfe-progress-indicator>

At the time of writing there is only one style variant, pfe-indeterminate that spins without informing the user of where they are in the waiting process, only that http activity has not been resolved. This may change in the future as more style variants become available.

Slots

Progress Indicator has one unnamed slot only.

Default slot

We expect any html tag to be the first child inside pfe-progress-indicator element. The provided element should contain a fallback loading message if JavaScript should fail for any reason. When the element is connected, the loading message is visually hidden, and replaced by an animated "spinner".

E.g.

// The web component that upgrades to a "loader"
<pfe-progress-indicator>

// your custom message for JS failure AND a11y technologies
<h1>
  This text will be seen if JS fails, but will be hidden on upgrade.
  Screen readers will still see it as a part of the DOM.
</h1>

</pfe-progress-indicator>

Styling

As of writing, the progress indicator element has only one style, but in the future it could be expanded to include many different types of progress indicators.

Test

npm run test

Build

npm run build

Demo

From the PFElements root directory, run:

npm start

Code style

Progress Indicator (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc