/** * @file ui:progress-circle * @requires @seed-design/lynx-react@>=0.1.0 <1.0.0 * @requires @seed-design/lynx-css@>=0.1.0 <1.0.0 **/import { ProgressCircle as SeedProgressCircle, type ProgressCircleProps as SeedProgressCircleProps,} from "@seed-design/lynx-react";export interface ProgressCircleProps extends SeedProgressCircleProps {}/** * @see https://crispy.carrot-soft.tech/lynx/components/progress-circle */export function ProgressCircle(props: ProgressCircleProps) { return ( <SeedProgressCircle.Root {...props}> <SeedProgressCircle.Range /> </SeedProgressCircle.Root> );}/** * This file is a snippet from Crispy, helping you get started quickly with @seed-design/* packages. * You can extend this snippet however you want. */
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.
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 <circle> 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
<ProgressCircle.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.