Lynx

Progress Circle

Used to indicate that a task is in progress or to visually represent task time.

Engine ≥ 3.6
Available since@seed-design/lynx-react@0.1.0, @seed-design/lynx-css@0.1.0
Loading Lynx example…

Installation

npx @seed-design/cli add ui:progress-circle

Props

Prop

Type

minValue?number | undefined
maxValue?number | undefined
value?number | undefined
style?CSSProperties | undefined
children?ReactNode
className?string | undefined

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.

<ProgressCircle
  minValue={0}
  maxValue={100}
  value={40}
  accessibility-label="File upload"
  accessibility-value="40% complete"
/>

Examples

Neutral

Loading Lynx example…

Brand

Loading Lynx example…

Static White

staticWhite is used over a dark background.

Loading Lynx example…

Size=40

Loading Lynx example…

Size=24

Loading Lynx example…

Determinate

Specifying all of minValue, maxValue, and value displays the fixed progress rate.

Loading Lynx example…

Indeterminate

Omitting value displays the progress status of a task whose completion time is unknown.

Loading Lynx example…

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 APISingle ProgressCircle componentSingle ProgressCircle component
Low-level package APIRoot, Track, Range compositionRoot, Range composition
RenderingSVG <circle> and stroke-dasharrayCSS clip-path-based pie sector
AnimationCSS @keyframes and animationMain thread requestAnimationFrame and setStyleProperty
Determinate transitionCSS transitionMain thread requestAnimationFrame-based easing animation
Track<ProgressCircle.Track /> SVG circleRendered with CSS background and clip-path on Root, no separate Track component
Accessibilityrole="progressbar" and aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetextaccessibility-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.

Table of contents