Moul UIBeta
ComponentsCharts

Percentage

Documentation for the PercentageBar and PercentageCircle components.

Percentage

Progress indicators that render percentage values in horizontal bars or SVG circular progress rings.

Preview

75%
Server CPU
45%
Memory Usage
12%
Disk IO
Task Completion85%
Network Bandwidth52%
Database Sync95%

Import

import { PercentageBar, PercentageCircle } from '@moul-dev/ui';

Usage

Horizontal Percentage Bar

import { PercentageBar } from '@moul-dev/ui';

export default function Example() {
  return (
    <PercentageBar
      value={85}
      label="Task Completion"
      size="md"
    />
  );
}

Circular Progress Ring

import { PercentageCircle } from '@moul-dev/ui';

export default function Example() {
  return (
    <PercentageCircle
      value={75}
      label="Server CPU"
      size={80}
    />
  );
}

Props

PercentageBar Props

PropTypeDefaultDescription
valuenumberProgress percentage (0 - 100).
labelReactNodeText label shown above the bar.
showValueTextbooleantrueShow percentage text on the right.
colorstringtokens.colorChart1Color of the progress filled bar.
size'sm' | 'md' | 'lg''md'Height thickness.

PercentageCircle Props

PropTypeDefaultDescription
valuenumberProgress percentage (0 - 100).
labelReactNodeLabel shown underneath the circle.
showValueTextbooleantrueDisplay progress percentage inside the ring.
colorstringtokens.colorChart1Color of the filled ring segment.
sizenumber80Diameter size in pixels.
strokeWidthnumber8Border stroke thickness of the circle.

On this page