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

volt-progress-bar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volt-progress-bar

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Volt Progress Bar

This is a simple progress bar component for Volt. The progress bar updates dynamically with a Volt reactive value.

Install

Include the following code in your gemfile:

gem 'volt-progress-bar'

Add the progress bar component to your config/dependencies.rb.

  component 'bootstrap'
  component 'progress-bar'

The bootstrap component is not necessary, but does include styling for the progress bar out of the box. If you wish to not use bootstrap, or you want to use your own styles, read the styling section below.

Use

To get a progress bar, simply put this code in a Volt view.

<:progress-bar value="{_width}" total="100" />

Value must be set to a reactive value and total can either be a reactive value or an integer.

Styling

Override the progress and progress-bar classes to customize the progress bar's style.

  .progress{
    width:100px;
  }
  .progress-bar{
    background:green;
  }

FAQs

Package last updated on 31 Jan 2014

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