a customizable progress bar for ink
npm install ink-progress-bar
> Progress bar component for Ink.
``sh`
$ npm install ink-progress-bar
See examples/basic.js for an example app. Run it with ./examples/run basic.
`jsx
import React, { Component } from 'react';
import { Color } from 'ink';
import ProgressBar from 'ink-progress-bar';
class MyProgress extends Component {
render() {
return (
<>
percent={this.state.done / TASKS}
/>
>
);
}
}
`
All props except the ones below are passed to as-is.
Type: string'█'
Default:
The character to use for each step.
Type: number0
Default:
The percentage (between 0 and 1) of progress.
Type: number0`
Default:
The number of characters to subtract from each side of the progress bar. Commonly used if you want text before/after the progress bar on the same line. See examples/basic.js for an example.
MIT © Frankie Bagnardi