@highlight-ui/circular-progress
v2.3.4
Published
[![npm](https://img.shields.io/npm/v/@highlight-ui/circular-progress)](https://www.npmjs.com/package/@highlight-ui/circular-progress) [![personio.design](https://img.shields.io/static/v1?label=Personio&message=zeroheight&color=yellow)](https://www.personi
Downloads
289
Maintainers
Keywords
Readme
@highlight-ui/circular-progress
Installation
Using npm:
npm install @highlight-ui/circular-progress
Using yarn:
yarn add @highlight-ui/circular-progress
Using pnpm:
pnpm install @highlight-ui/circular-progress
In your (S)CSS file:
@import url('@highlight-ui/circular-progress');
Once the package is installed, you can import the library:
import { CircularProgress } from '@highlight-ui/circular-progress';
Usage
import React, { useState } from 'react';
import { CircularProgress } from '@highlight-ui/circular-progress';
export default function CircularProgressExample() {
return <CircularProgress percentage={50} />;
}
Props 📜
| Prop | Type | Required | Default | Description |
| :----------- | :----------- | :------- | :------ | :------------------------------------------------ |
| percentage
| number
| Yes | | Percentage of the progress |
| color
| ColorToken
| No | | Custom color token for the progress circular line |
Custom types 🔠
| Type | Values | Description |
| :----------- | :-------------------------------------------------------------------------------------- | :------------------------ |
| ColorToken
| "Colors" token names | Used for the color
prop |
Contributing 🖌️
Please visit personio.design for usage guidelines and visual examples.
If you're interested in contributing, please visit our contribution page.