DocsComponentsTemplatesThemesGitHub

ProgressRing

Circular progress for compact spaces.

Code

import * as React from 'react';
import { ProgressRing } from '@fruit-labs/design';

export default function Demo() {
  return (
    <div
      style={{
        display: 'flex',
        gap: 16,
      }}
    >
      <ProgressRing value={68} label="Upload" />
      <ProgressRing value={25} size={32} strokeWidth={4} />
    </div>
  );
}

Values

import { ProgressRing } from '@fruit-labs/design';

export default function Example() {
  return (
    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 12, alignItems: 'center' }}>
      <ProgressRing value={25} label="Setup" />
      <ProgressRing value={90} size={72} label="Profile" />
    </div>
  );
}

Install

From npm:

npm install @fruit-labs/design

import { ProgressRing } from '@fruit-labs/design';

Or copy the TypeScript source into your project:

npx shadcn@latest add https://design.fruitlabs.online/r/progress-ring.json

Guidelines

  • Pair with text when the number matters.

Props

PropTypeRequired
valuenumberYes
sizenumberNo
strokeWidthnumberNo
labelstringNo
classNamestringNo

Edit this example on GitHub