@pikas-ui/progress

This package contains a progress component that can be used to display a progress bar.

This library is based on Radix Ui.

Change Log

Requirements

To use this package, you must install the @pikas-ui/styles package.

Installation

You can install this package using npm, yarn, or pnpm.

npm install @pikas-ui/progress
yarn add @pikas-ui/progress
pnpm add @pikas-ui/progress

Usage

Progress

The progress component is used to display a progress bar.

50%50%
25/10025/100
import { Progress } from '@pikas-ui/progress';

const Example: React.FC = () => {
  return <Progress progress={60} />;
};

Props

PropDescriptionTypeDefault
progressThe progress value of the progress.number0
maxThe max value of the progress.number or string100
widthThe width of the progress.number or string280
heightThe height of the progress.number or string16
colorNameThe color of the progress.PikasColors"primary"
backgroundColorNameThe background color of the progress.PikasColors"gray"
loadingThe loading state of the progress.booleanfalse
boxShadowThe box shadow of the progress.PikasShadow or 'none""inner-md"
borderRadiusThe border radius of the progress.PikasRadius"full"
borderRadiusIndicatorThe border radius of the indicator.PikasRadius"none"
getValueLabelThe function to get the label of the progress.(value: number, max: number) => string(value, max): string => Math.round((value / max) * 100) + "%"
cssThe css of the progress.ProgressCSS-
contentThe content of the progress.string-

Contributing

This documentation can be edited on GitHub here