slidev-component-progress

Progress component for Slidev
1,858 24
Install
npm install slidev-component-progress
Latest Version:1.1.0
Vue:3
License:MIT
Last Updated:Apr 2, 2024
Links: GitHub  ·  npm
Maintainer: tonai

slidev-component-progress

NPM version

Progress component for Slidev Slidev.
Shows a progress bar that represents the completed percentage of the presentation.

Progress demo

Installation

npm i slidev-component-progress

Configuration

Define this package into your slidev addons.

In your slides metadata (using frontmatter):

---
addons:
  - slidev-component-progress
---

Or in your package.json:

{
  "slidev": {
    "addons": [
      "slidev-component-progress"
    ]
  }
}

Usage

Create a ./global-top.vue file in your Slidev project and use the component:

<template>
  <Progress level="2"/>
</template>

Components

Progress

Component that displays the slides progress:

<Progress level="2"/>

Parameters:

  • activeColor (type: string, default: '#ffffff' (light) or '#000000' (dark)): The color of the active item
  • barColor (type: string): The color of the progress bar, by default, it will use the --slidev-theme-primary CSS variable
  • height (type: string): Height of the progress bar, by default it is the minimum possible height depending of the level
  • level (type: number | string, default: 1): Title level to show in the progress bar with informations from the Table Of Content
  • opacity (type: number | string, default: 0.5): Opacity of the progress bar when not hovered
  • position (type: 'top' | bottom', default: 'top'): Position of the progress bar in the slide
  • strokeColor (type: string, default: '#000000'(light) or '#ffffff' (dark)): The stroke color for the items
  • thickness (type: string, default: 2px)
  • transitionDuration (type: string, default: 200ms): CSS transition durations

Related Packages

vue3-progress

A vue3 component of progress bar.

33,840 29
vue-progress-circle

Circle progress component for vue 3

11,951 3
vue-multiple-progress

Vue-based progress component

11,082 138
vue3-progress-bar

A vue3 component of progress bar.

2,471
slidev-addon-asciinema

Slidev addon to embed asciinema casts to presentations.

2,022 13

Version History

Version Released Vue License
1.1.0 ^3.2.34 MIT
1.0.3 ^3.2.34 GPL
1.0.2 ^3.2.34 GPL
1.0.1 ^3.2.34 GPL
1.0.0 ^3.2.34 GPL