A Simple, Flexible Progress Bar with Vue

A Simple, Flexible Progress Bar with Vue

A simple, flexible progress bar .Template for bundle Vue component or plugin for NPM

Poeta Digital Progress Bar

A simple, flexible progress bar.

Install

$ npm install @poetadigital/progress-bar --save-dev

Usage

Global

In main.js of Vue projects

import PProgressBar from '@poetadigital/progress-bar';
import App from './App.vue';

Vue.use(PProgressBar);

new Vue({
  render: (h) => h(App),
}).$mount('#app');

In App.vue, you can use PProgressBar component

<template>
  <div class="app">
    <PProgressBar
        class="custom-progress-bar"
        barBorderRadius="100"
        size="huge"
        val="50"
        textPosition="middle"
        text="50%"
    />
    <span> 50% </span>
  </div>
</template>

<script>
export default {
    name: 'App',
}
</script>

Import Component

<template>
  <div class="app">
    <PProgressBar
        class="custom-progress-bar"
        barBorderRadius="100"
        size="huge"
        val="50"
        textPosition="middle"
        text="50%"
    />
    <span> 50% </span>
  </div>
</template>

<script>
import PProgressBar from '@poetadigital/progress-bar';

export default {
    name: 'App',
    components: { PProgressBar }
}
</script>

Props

Props Type Values Default
val Number 0 - max 0
max Number Any number 100
size Number String tiny, small, medium, large, huge, massive, {n}
borderProgress String CSS 1px solid #D9D9D9
barColor String Color #0085FF
barColor String Color #0085FF
barTransition String CSS all 0.5s ease
barBorderRadius Number 0 - max 0
spacing Number Any Number 4
text String Text to display empty
textAlign String left, right, center center
textPosition String bottom, top, middle, inside bottom
textSize Number Any Number 13
textFgColor String Color #222222

Download Details:

Source Code: https://www.npmjs.com/package/@poetadigital/progress-bar

vue vuejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.