Skip to main content

Progress Bars

Purpose

ProgressCircle is a customizable component that displays a circular progress indicator. with an optional percentage text inside

Import

import ProgressCircle from '@/components/ui/progressBars/ProgressCircle';

Props

PropTypeDefaultDescription
progressnumberProgress value between 0 and 1 (e.g., 0.75 for 75%)
showTextbooleantrueWhether to show progress percentage text inside the circle
sizenumber65Diameter of the progress circle
thicknessnumber3Thickness of the progress ring
textStyleTextStyleOptional custom style for the percentage text

Basic Usage

<ProgressCircle
progress={0.5}
showText={true}
size={80}
thickness={4}
textStyle={{color: 'red', fontWeight: 'bold'}}
/>


ProgressHorizontal

Import

import ProgressHorizontal from '@/components/ui/progressBars/ProgressHorizontal';

Props

PropTypeDefaultDescription
progressnumberProgress value between 0 and 1 (e.g., 0.75 for 75%)
heightnumber10Height of the progress bar
widthnumber | nullnullWidth of the progress bar (if null, stretches to parent width)
colorstringPRIMARY_COLORColor of the filled portion of the progress bar
unFilledColorstringLIGHTGRAY_COLORColor of the unfilled portion of the progress bar
borderWidthnumber0Border width of the progress bar
styleViewStyleOptional additional styles for the progress bar container

Basic Usage

<ProgressHorizontal
progress={0.6}
height={12}
width={200}
color="#3498db"
unFilledColor="#ecf0f1"
borderWidth={1}
style={{borderRadius: 8}}
/>


NOTE: All example can be founded in progress_bars.tsx