# Progress Circle
URL: /lynx/components/progress-circle
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/components/progress-circle.mdx
Used to indicate that a task is in progress or to visually represent task time.
Lynx Engine 최소 버전: 3.6
사용 가능 버전: @seed-design/lynx-react@0.1.0, @seed-design/lynx-css@0.1.0
## Preview
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
## Installation
- npm: npx @seed-design/cli add ui:progress-circle
- pnpm: pnpm dlx @seed-design/cli add ui:progress-circle
- yarn: yarn dlx @seed-design/cli add ui:progress-circle
- bun: bun x @seed-design/cli add ui:progress-circle
## Props
`ProgressCircle` is exposed as an accessibility element by default and passes `accessibility-role-description="progressbar"`. If `minValue`, `maxValue`, and `value` are all specified, the three values are passed as `accessibility-value`. If `value` is omitted, `indeterminate` is passed.
To change the text that screen readers read, specify `accessibility-value` directly. If needed, `accessibility-role-description` and `accessibility-element` can also be overridden in the same way.
```tsx
```
## Examples
### Neutral
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Brand
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Static White
`staticWhite` is used over a dark background.
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Size=40
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Size=24
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Determinate
Specifying all of `minValue`, `maxValue`, and `value` displays the fixed progress rate.
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
### Indeterminate
Omitting `value` displays the progress status of a task whose completion time is unknown.
```tsx
import "./styles";
import { ProgressCircle } from "@/components/ui/progress-circle";
import { useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
);
}
```
## Differences from Web Version
The Lynx version has a different internal implementation from the web (`@seed-design/react`) version due to platform constraints. The single `ProgressCircle` API, public variant, and progress rate API provided by Registry are the same.
| | Web (React) | Lynx |
| -------------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| **Registry API** | Single `ProgressCircle` component | Single `ProgressCircle` component |
| **Low-level package API** | `Root`, `Track`, `Range` composition | `Root`, `Range` composition |
| **Rendering** | SVG `` and `stroke-dasharray` | CSS `clip-path`-based pie sector |
| **Animation** | CSS `@keyframes` and `animation` | Main thread `requestAnimationFrame` and `setStyleProperty` |
| **Determinate transition** | CSS `transition` | Main thread `requestAnimationFrame`-based easing animation |
| **Track** | `` SVG circle | Rendered with CSS `background` and `clip-path` on Root, no separate Track component |
| **Accessibility** | `role="progressbar"` and `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, `aria-valuetext` | `accessibility-role-description="progressbar"` and `accessibility-value` |
In Lynx, `clip-path` is not an animation property, so it creates a path string every frame. Rendering many indeterminate instances on one screen may degrade performance.