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.jsonGuidelines
- Pair with text when the number matters.
Props
| Prop | Type | Required |
|---|---|---|
value | number | Yes |
size | number | No |
strokeWidth | number | No |
label | string | No |
className | string | No |