Progress

A bar and a circle that spring to each new value and read their percentage aloud.

Features

  • A bar and a circle that spring to each new value.

Use it for

  • Uploads and long tasks.

Installation

  1. Get runets.
    git clone https://github.com/ziyam-khan/runets
  2. Copy these files into your project, keeping their folders.
  3. Install what they use.
    pnpm add react
  4. Load the styles once. Bring your own base tokens, or use runets’ default theme.
    import 'runets/styles/theme.css'
    import 'runets/styles/kit.css'

Usage

import { Progress, ProgressCircle } from 'runets'

<Progress value={67} label="Upload" />
<ProgressCircle value={67} label="Upload" />

API

PropTypeWhat it does
valuenumber0 to 100.
labelstringWhat is progressing.

Accessibility

Source

The code is in src/kit/controls.tsx in runets, MIT licensed.