सीधे मुख्य कॉन्टेंट पर जाएँ
menumenu tanreiexpand_morecontrasttranslate
tanreiexpand_more
शुरुआत करेंWebReactSwiftUIJetpack ComposeFlutterReact Nativeप्रीसेटआपका अपना डिज़ाइन सिस्टमAI एजेंट के साथ Tanrei का इस्तेमालब्रांडडिज़ाइन टोकनडिज़ाइन सिस्टम और कस्टमाइज़ेशनTheme Studioरंगटाइपोग्राफ़ीआइकनशेपएलिवेशनमोशनइंटरैक्शन स्टेटव्यवहारलेआउटसुलभताशब्दकलर टोकनटाइप स्केल टोकनशेप टोकनएलिवेशन टोकनमोशन टोकनस्टेट टोकनस्पेस और माप के टोकनकंपोनेंटबटनमुख्य ऐक्शन बटनसेगमेंटेड बटनबटन ग्रुपमेन्यू वाला बटनटूलबारकॉपी बटनचेकबॉक्सरेडियो बटनस्विचचिपमेन्यूस्लाइडरस्लाइडर फ़ील्डकैलेंडरDateTimePickerफ़ील्ड ग्रुपरेडियो ग्रुपचेकबॉक्स ग्रुपसिलेक्टसिलेक्ट फ़ील्डमेन्यू बारफ़ाइल अपलोडफ़ाइल पिकर उन्नतड्रॉप ज़ोनटेक्स्ट इनपुट उन्नतटेक्स्ट फ़ील्डचिप फ़ील्डफ़ील्डकॉम्बोबॉक्स उन्नतकॉम्बोबॉक्स फ़ील्डनंबर इनपुट उन्नतनंबर फ़ील्डकलर इनपुट उन्नतकलर फ़ील्डवन-टाइम कोड इनपुट उन्नतवन-टाइम कोड फ़ील्डएम्बेडेड टेक्स्ट इनपुट उन्नतचैट कंपोज़रकार्डडिवाइडरमोडल लेयर उन्नतडायलॉगलिस्टलिस्ट पंक्तिबॉटम शीटसाइड शीटकैरसेलकोड ब्लॉकटेबलपॉपओवरचरणअकॉर्डियनडिस्क्रिप्शन लिस्टफ़िगरऐप शेलपेज हेडरट्री व्यूटाइमलाइनइमेज प्रीव्यूसाइज़ हैंडलसाइज़ बदलने वाला फ़्रेमस्क्रॉल एरियाबैजप्रोग्रेस इंडिकेटरमीटरनंबर टिकरलोडिंग इंडिकेटरस्नैकबारटूलटिपकीबोर्ड शॉर्टकटटैगइनलाइन कोडकॉलआउटअवतारख़ाली स्टेटटैग ग्रुपस्केलेटनफ़ाइल आइटमस्वॉचमार्की टेक्स्टटैबटैब व्यूऐप बारनेविगेशन बारनेविगेशन ड्रॉअरखोजलिंकपेजिनेशनपिछला और अगला लिंकस्टेपरब्रेडक्रंबविषय सूचीलिंक कार्डFAB मेन्यूस्थितिTanrei कैसे बनता हैयोगदानलाइसेंस और श्रेय
होमकंपोनेंटप्रोग्रेस इंडिकेटर

प्रोग्रेस इंडिकेटर

एक बार या रिंग के रूप में दिखाता है कि कोई काम कितना आगे बढ़ा है, या जब यह पता न हो, तो यह कि वह चल रहा है।

content_copyMarkdown में देखें
श्रेणी
कम्युनिकेशन
टोकन
comp.progress-indicator
स्तर
आधार

अवलोकन

Web
tanrei-progress-indicator
schedule
SwiftUI
TanreiProgressIndicator
schedule
Jetpack Compose
TanreiProgressIndicator
schedule
Flutter
TanreiProgressIndicator
schedule
React Native
ProgressIndicator
schedule

इससे जनरेट किया गया: docs/status/status.json, specs/progress-indicator.spec.json

Linear और circular

इस्तेमाल

Web और React के उदाहरण मौजूदा स्पेक दिखाते हैं। SwiftUI, Compose, Flutter और React Native पीछे हैं: उनमें अभी separation नहीं है, और उनके उदाहरण वही दिखाते हैं जो वे आज देते हैं।

<tanrei-progress-indicator value="0.4" label="report.pdf अपलोड हो रही है"></tanrei-progress-indicator>
<tanrei-progress-indicator value="3" max="10" value-text="10 में से 3 फ़ाइलें" label="अपलोड हो रहा है"></tanrei-progress-indicator>

<!-- कोई मान नहीं: अनिश्चित, जैसे बिना मान का <progress>। -->
<tanrei-progress-indicator variant="circular" size="small" label="सिंक हो रहा है"></tanrei-progress-indicator>

<!-- इंडिकेटर और बाक़ी ट्रैक के बीच एक गैप, डिज़ाइन सिस्टम ने जो भी चुना हो। -->
<tanrei-progress-indicator separation="gap" value="0.4" label="report.pdf अपलोड हो रही है"></tanrei-progress-indicator>

<script type="module">
  import '@tanrei/web/components/progress-indicator';
  const bar = document.querySelector('tanrei-progress-indicator');
  bar.value = sent / total;
</script>
import { ProgressIndicator } from '@tanrei/react';

<ProgressIndicator value={sent / total} label="report.pdf अपलोड हो रही है" />
<ProgressIndicator value={files} max={10} valueText={`10 में से ${files} फ़ाइलें`} label="अपलोड हो रहा है" />
<ProgressIndicator variant="circular" size="small" value={null} label="सिंक हो रहा है" />
<ProgressIndicator separation="gap" value={sent / total} label="report.pdf अपलोड हो रही है" />
import Tanrei

TanreiProgressIndicator("report.pdf अपलोड हो रही है", value: sent / total)
TanreiProgressIndicator("अपलोड हो रहा है", value: Double(files), in: 0...10, currentValueLabel: "10 में से \(files) फ़ाइलें")

// कोई मान न होना (डिफ़ॉल्ट) अनिश्चित है।
TanreiProgressIndicator("सिंक हो रहा है", variant: .circular, size: .small)
import io.github.chnotchy.tanrei.components.TanreiProgressIndicator
import io.github.chnotchy.tanrei.components.TanreiProgressIndicatorVariant
import io.github.chnotchy.tanrei.tokens.TanreiProgressIndicatorSize

// progress एक लैम्ब्डा है: नया मान रीकंपोज़ किए बिना दोबारा बनता है।
TanreiProgressIndicator(progress = { sent / total }, contentDescription = "report.pdf अपलोड हो रही है")
TanreiProgressIndicator(
    progress = { files.toFloat() },
    contentDescription = "अपलोड हो रहा है",
    valueRange = 0f..10f,
    stateDescription = "10 में से $files फ़ाइलें",
)

// progress के बिना वाला ओवरलोड अनिश्चित है।
TanreiProgressIndicator(
    contentDescription = "सिंक हो रहा है",
    variant = TanreiProgressIndicatorVariant.Circular,
    size = TanreiProgressIndicatorSize.Small,
)
import 'package:tanrei/tanrei.dart';

TanreiProgressIndicator(value: sent / total, semanticsLabel: 'report.pdf अपलोड हो रही है');
TanreiProgressIndicator(
  value: files.toDouble(),
  max: 10,
  semanticsValue: '10 में से $files फ़ाइलें',
  semanticsLabel: 'अपलोड हो रहा है',
);

// value: null (डिफ़ॉल्ट) अनिश्चित है।
const TanreiProgressIndicator(
  variant: TanreiProgressIndicatorVariant.circular,
  size: TanreiProgressIndicatorSize.small,
  semanticsLabel: 'सिंक हो रहा है',
);
import { ProgressIndicator } from '@tanrei/react-native';

<ProgressIndicator accessibilityLabel="report.pdf अपलोड हो रही है" value={sent / total} />
<ProgressIndicator accessibilityLabel="अपलोड हो रहा है" value={files} max={10} valueText={`10 में से ${files} फ़ाइलें`} />
<ProgressIndicator accessibilityLabel="सिंक हो रहा है" variant="circular" size="small" />

स्पेक

साइज़, रेंज के दोनों सिरे और एक कस्टम रेंज

अलगाव: divider (डिफ़ॉल्ट सिस्टम का चुनाव) और gap

संरचना

संरचना

वेब पैकेज जिस तरह फ़िक्स्चर linear-determinate बनाता है, उसी के ऊपर बनाया गया।
भाग विवरण
1 track The full length of the bar, or the full circle of the ring: the whole of the task.
2 indicator The part of the track drawn in the indicator color: the fraction done (determinate), or a moving segment or arc (indeterminate). It meets the rest of the track, or stands a gap from it (separation).
3 stop-indicator · वैकल्पिक A dot at the end of a determinate bar's track that marks where the task ends. Drawn under either separation whenever its size is above 0; 0 draws none.

प्रॉपर्टी

प्रॉपर्टी टाइप डिफ़ॉल्ट विवरण
variant linear | circular "linear" Linear is a bar that fills the width its layout gives it, for content and pages; circular is a ring of a fixed size, for tight places and next to text. A structural choice drawn by code, not a token axis: a design system cannot add a form by values.
size small | medium | large "medium" The bar's thickness (2 / 4 / 8) or the ring's box (16 / 24 / 40). A design system may add values.
separation auto | divider | gap "auto" How a determinate indicator is told from the rest of its track. divider: it is drawn on the track with no space between them. gap: empty space is left between them. Whether a bar marks the track's end with a dot is comp.progress-indicator.stop-indicator.size, not the separation. Auto takes comp.progress-indicator.track.separation, the design system's answer (divider in the default system).
value number null How far the task has come, between min and max. Null makes the indicator indeterminate.
min number 0 The value at which nothing is done.
max number 1 The value at which the task is done.
label string "" The accessible name: what is in progress ("Uploading report.pdf"). Required: a bar alone is not a name.
valueText string "" How assistive technology reads the value when a percentage is not the natural reading ("3 of 10 files"). Empty reads the platform's percentage.

स्टेट

व्यवहार

EARS रूप में लिखी गई आवश्यकताएँ। हर प्लैटफ़ॉर्म के इम्प्लीमेंटेशन को इन ID के आधार पर टेस्ट किया जाता है। आवश्यकताओं का पाठ स्पेक फ़ाइल से ज्यों का त्यों, अंग्रेज़ी में दिखाया गया है।

ID आवश्यकता
PRG-1 WHILE value is a number THE progress indicator SHALL be determinate and draw the indicator over the fraction (value − min) / (max − min) of the track, from the track's start: the inline-start of a bar, the top of a ring, turning clockwise.
PRG-2 WHILE value is null THE progress indicator SHALL be indeterminate: a bar SHALL move a segment of the indicator, two fifths of the track long, from beyond the track's start to beyond its end once per comp.progress-indicator.motion.cycle-duration with comp.progress-indicator.motion.cycle-easing; a ring SHALL turn an arc of the indicator a quarter of the circle long clockwise once per comp.progress-indicator.motion.cycle-duration at constant speed (sys.motion.easing.linear).
PRG-3 THE progress indicator SHALL draw a bar comp.progress-indicator.linear.thickness.medium high for medium (and so on for each size) across the full inline size its layout gives it, and a ring whose outer edge fills a comp.progress-indicator.circular.size.medium square with a stroke of comp.progress-indicator.circular.thickness.medium for medium (and so on for each size).
PRG-4 THE progress indicator SHALL draw the track in comp.progress-indicator.track.color and the indicator over it in comp.progress-indicator.indicator.color; the ends of a bar's track and indicator SHALL be rounded by comp.progress-indicator.track.shape, clamped to half the thickness, and a ring's arcs SHALL have round caps unless comp.progress-indicator.track.shape is sys.shape.corner.none.
PRG-5 WHILE determinate, its separation is gap (PRG-17) and value lies strictly between min and max THE progress indicator SHALL leave comp.progress-indicator.track.gap of empty space, measured along the track, between the indicator and the rest of the track — on a bar between the indicator's end and the track, on a ring at both ends of the indicator's arc. WHILE its separation is divider THE progress indicator SHALL draw the indicator on the track with no empty space between them: the edge where the indicator's color ends is what divides them. WHILE a bar is determinate THE progress indicator SHALL draw, under either separation, a dot of comp.progress-indicator.stop-indicator.size, and no larger than the bar is thick, in comp.progress-indicator.indicator.color centered in the thickness with its center half the thickness before the track's end (concentric with the track's rounded end); it SHALL NOT be drawn while value is at max, where the indicator covers it, and a size of 0 SHALL draw none. Whether the dot is drawn is independent of the separation.
PRG-6 WHEN value changes while determinate THE progress indicator SHALL move the indicator's end to the new value over comp.progress-indicator.motion.value-duration with comp.progress-indicator.motion.value-easing; a switch between determinate and indeterminate SHALL take effect at once.
PRG-7 WHERE reduced motion is requested THE progress indicator SHALL show a value change at once, and WHILE indeterminate SHALL NOT move: it SHALL draw the indicator over the whole track (the whole circle of a ring) and ease its opacity from 1 to 0 and back to 1 once per comp.progress-indicator.motion.cycle-duration with comp.progress-indicator.motion.cycle-easing, over a track that stays still.
PRG-8 WHILE value is a number THE progress indicator SHALL expose the progressbar role to assistive technology with label as its name, min and max as its range, the clamped value as its current value, and valueText as the value's text when valueText is not empty.
PRG-9 WHILE value is null THE progress indicator SHALL expose the progressbar role with label as its name, no current value, and the platform's busy or indeterminate state.
PRG-10 THE progress indicator SHALL NOT be focusable and SHALL NOT announce value changes by itself; assistive technology SHALL read the current value when it reaches the indicator, and a platform that marks frequently updating elements SHALL mark it so.
PRG-11 IF value is below min or above max THE progress indicator SHALL draw and expose it clamped to that range; IF max is not greater than min THE progress indicator SHALL draw the track with no indicator and expose a current value of 0 in a range of 0 to 1; in each case debug builds SHALL report the values.
PRG-12 WHEN size names a value that the active design system does not have, or variant or separation a value the component does not define, THE progress indicator SHALL render with the default value's tokens (medium, linear, auto), and in debug builds report the unknown value.
PRG-13 WHERE the layout direction is right-to-left THE progress indicator SHALL fill a bar and move its indeterminate segment from right to left; a ring SHALL NOT be mirrored: it starts at the top and turns clockwise in every direction, as a clock does.
PRG-14 WHILE the progress indicator is not visible (scrolled out of view, in a hidden view, or in an app in the background) THE progress indicator SHALL NOT run its indeterminate animation, and SHALL resume it when it becomes visible.
PRG-15 WHILE label is empty THE progress indicator SHALL still render, and in debug builds report that it has no accessible name.
PRG-16 THE progress indicator SHALL take its layout direction from where it is used — the direction of the nearest ancestor that sets one, and the platform's own where none does — and SHALL have no direction setting of its own; WHEN that direction changes while the progress indicator is shown THE progress indicator SHALL draw itself for the new direction at once, without a motion of its own, keeping its value, and the place of an indeterminate segment in its cycle.
PRG-17 THE progress indicator SHALL tell a determinate indicator from the rest of its track as its separation names: WHILE separation is auto, as comp.progress-indicator.track.separation names, which follows sys.behavior.separation unless a design system sets it apart; WHILE separation is divider or gap, as that value names, whatever the tokens say; each as PRG-5 draws it. WHEN separation, or the token it follows, changes THE progress indicator SHALL draw the other form at once, without animation, keeping its value. WHILE indeterminate THE progress indicator SHALL be drawn the same under either (PRG-2, PRG-7). A platform that cannot draw a choice SHALL fall back to the first value, divider, and state that in its README.
PRG-18 WHERE the platform has ARIA attributes (the web), the host carries its progressbar role (PRG-8) itself, so what the product writes on it is not moved, but for a name: WHILE label is not empty THE progress indicator SHALL hold the product's aria-label and aria-labelledby on that host as their data-aria- twins, so that label is its whole name although the platform gives aria-labelledby the precedence, and WHEN label is emptied SHALL give them back as they were written; WHILE label is empty a name the product gives so — aria-label, or aria-labelledby naming an element — SHALL be its name and SHALL NOT be reported as having none in debug builds (PRG-15). WHEN the product removes one, or its data-aria- twin, or sets the ARIA property that reflects it (ariaLabel, ariaLabelledByElements) to null, THE progress indicator SHALL take it away.

प्लैटफ़ॉर्म के अनुसार नामों का मिलान

पैरिटी का मतलब एक जैसे API नहीं है। हर प्लैटफ़ॉर्म एक ही कॉन्ट्रैक्ट को अपने तरीक़े से व्यक्त करता है।

स्पेक Web SwiftUI Jetpack Compose Flutter React Native
कंपोनेंट tanrei-progress-indicator TanreiProgressIndicator TanreiProgressIndicator TanreiProgressIndicator ProgressIndicator
variant · प्रॉपर्टी variant variant variant variant variant
size · प्रॉपर्टी size size size size size
separation · प्रॉपर्टी separation separation separation separation separation
value · प्रॉपर्टी value value progress value value
min · प्रॉपर्टी min bounds valueRange min min
max · प्रॉपर्टी max bounds valueRange max max
label · प्रॉपर्टी label label contentDescription semanticsLabel accessibilityLabel
valueText · प्रॉपर्टी valueText currentValueLabel stateDescription semanticsValue valueText
टिप्पणियाँ As a native <progress>: no value attribute (or removing it) is indeterminate. valueText is the value-text attribute. The host carries role="progressbar" and the aria-value attributes. separation is an attribute (auto, divider, gap); auto reads the name in --tanrei-comp-progress-indicator-track-separation. Initialisers follow ProgressView: TanreiProgressIndicator(_ label:, value: Double?, in bounds: ClosedRange<Double> = 0...1, currentValueLabel:). value: nil is indeterminate; bounds carries min and max as Slider's in: does. Not built on this platform yet: separation (auto, divider, gap), PRG-17 and the seven gap and divider fixtures; reading comp.progress-indicator.track.separation as a typed choice needs the token emitters to write a choice of kind as a typed enumeration, which they do not yet. Not built on this platform yet: the stage color a fixture's surface names, which the linear-on-container-highest fixture draws on. Two overloads, as Material's indicators have: with progress: () -> Float it is determinate (a lambda, so a changing value redraws without recomposing), read within valueRange: ClosedFloatingPointRange<Float> = 0f..1f (as Slider names it); without progress it is indeterminate. stateDescription is the semantics property of the same name. Not built on this platform yet: separation (auto, divider, gap), PRG-17 and the seven gap and divider fixtures; reading comp.progress-indicator.track.separation as a typed choice needs the token emitters to write a choice of kind as a typed enumeration, which they do not yet. Not built on this platform yet: the stage color a fixture's surface names, which the linear-on-container-highest fixture draws on. As Flutter's ProgressIndicator: value: null is indeterminate, and semanticsLabel / semanticsValue are its names. Unlike Flutter's (a fraction from 0 to 1), value is read between min and max, as Slider does. Not built on this platform yet: separation (auto, divider, gap), PRG-17 and the seven gap and divider fixtures; reading comp.progress-indicator.track.separation as a typed choice needs the token emitters to write a choice of kind as a typed enumeration, which they do not yet. Not built on this platform yet: the stage color a fixture's surface names, which the linear-on-container-highest fixture draws on. value undefined or null is indeterminate. min, max, value and valueText are passed together as accessibilityValue ({ min, max, now, text }); indeterminate sets accessibilityState={{ busy: true }} and no now. Not built on this platform yet: separation (auto, divider, gap), PRG-17 and the seven gap and divider fixtures; reading comp.progress-indicator.track.separation as a typed choice needs the token emitters to write a choice of kind as a typed enumeration, which they do not yet. Not built on this platform yet: the stage color a fixture's surface names, which the linear-on-container-highest fixture draws on.

टोकन

टोकन किसका एलियास रिज़ॉल्व किया गया मान (लाइट)
--tanrei-comp-progress-indicator-circular-size-large — 40px
--tanrei-comp-progress-indicator-circular-size-medium — 24px
--tanrei-comp-progress-indicator-circular-size-small — 16px
--tanrei-comp-progress-indicator-circular-thickness-large sys.border.thick 2px
--tanrei-comp-progress-indicator-circular-thickness-medium sys.border.thick 2px
--tanrei-comp-progress-indicator-circular-thickness-small sys.border.thick 2px
--tanrei-comp-progress-indicator-indicator-color sys.color.primary #1b1b1b
--tanrei-comp-progress-indicator-linear-thickness-large — 8px
--tanrei-comp-progress-indicator-linear-thickness-medium — 4px
--tanrei-comp-progress-indicator-linear-thickness-small — 2px
--tanrei-comp-progress-indicator-motion-cycle-duration sys.motion.duration.extra-long4 1000ms
--tanrei-comp-progress-indicator-motion-cycle-easing sys.motion.easing.standard cubic-bezier(0.2, 0, 0, 1)
--tanrei-comp-progress-indicator-motion-value-duration sys.motion.duration.medium2 300ms
--tanrei-comp-progress-indicator-motion-value-easing sys.motion.easing.standard cubic-bezier(0.2, 0, 0, 1)
--tanrei-comp-progress-indicator-stop-indicator-size sys.space.space0 0px
--tanrei-comp-progress-indicator-track-color sys.color.surface-variant #eeeeee
--tanrei-comp-progress-indicator-track-gap sys.space.space50 4px
--tanrei-comp-progress-indicator-track-separation sys.behavior.separation 0
--tanrei-comp-progress-indicator-track-shape sys.shape.corner.full 9999px

फ़िक्स्चर

मानक रेंडरिंग। हर प्लैटफ़ॉर्म हर फ़िक्स्चर का स्नैपशॉट एक ही ID से लेता है, ताकि नतीजों की तुलना की जा सके।

इससे जनरेट किया गया: specs/progress-indicator.spec.json, tokens/comp/progress-indicator.tokens.json, design/tokens/

दिशानिर्देश

कब इस्तेमाल करें

प्रोग्रेस इंडिकेटर उस काम के लिए इस्तेमाल करें जो इतना लंबा चलता है कि महसूस हो: अपलोड, इंपोर्ट, डिप्लॉय, लंबा सेव। जब आप नाप सकते हों, मोटे तौर पर ही सही, तो दिखाएँ कि काम कितना आगे बढ़ा है; चलते हुए बार के लिए लोग ज़्यादा धैर्य से इंतज़ार करते हैं। जब आप अभी नाप नहीं सकते, तो उसे अनिश्चित दिखाएँ, और जैसे ही मान मिले, मान पर आ जाएँ।

जिस छोटे इंतज़ार की अवधि आप नाप नहीं सकते, जैसे अगला पेज ला रही लिस्ट, उसके लिए इसकी जगह लोडिंग इंडिकेटर इस्तेमाल करें। उसमें ट्रैक नहीं होता, क्योंकि वह कभी किसी मान का वादा नहीं करता।

वेरिएंट चुनना

वेरिएंट किसके लिए
Linear वे काम जो किसी पेज या सेक्शन के हैं: पेज के ऊपर, कार्ड के भीतर, अपलोड लिस्ट में किसी फ़ाइल के नीचे। बार उतनी चौड़ाई भरता है जितनी उसका लेआउट उसे देता है।
Circular तंग जगहें और टेक्स्ट के बग़ल की प्रगति: बटन में, लिस्ट की पंक्ति में, छोटे पैनल में। रिंग का साइज़ तय होता है।

साइज़ चुनना

साइज़ डिफ़ॉल्ट सिस्टम में बार की मोटाई / रिंग का साइज़ किसके लिए
Small 2 / 16 घनी पंक्तियाँ, कंट्रोल के भीतर, छोटे टेक्स्ट के बग़ल में।
Medium 4 / 24 ज़्यादातर जगहें। यही डिफ़ॉल्ट है।
Large 8 / 40 वह एक काम जिसके बारे में पूरा व्यू है, या अपने कॉन्टेंट का इंतज़ार कर रहा ख़ाली सेक्शन।

डिवाइडर या गैप

निश्चित इंडिकेटर को उसके बाक़ी ट्रैक से दो में से एक तरीक़े से अलग पहचाना जाता है। divider में वह ट्रैक पर बनता है और दोनों के बीच कोई जगह नहीं होती। gap में उसके बाद थोड़ी ख़ाली जगह छोड़ी जाती है, रिंग पर उसके चाप के दोनों सिरों पर। अनिश्चित इंडिकेटर दोनों में एक जैसा दिखता है। बार अपने ट्रैक के अंत को एक बिंदु से चिह्नित करे या नहीं, यह अलग चुनाव है, उसके स्टॉप इंडिकेटर का आकार: जो डिज़ाइन सिस्टम उसे आकार देता है वह दोनों में से किसी भी अलगाव में बिंदु बनाता है, और डिफ़ॉल्ट सिस्टम कोई बिंदु नहीं बनाता।

डिज़ाइन सिस्टम यह चुनाव उन सभी कंपोनेंट के लिए एक ही बार करता है जिनके पास यह चुनाव है, और डिफ़ॉल्ट सिस्टम divider चुनता है। उस चुनाव के साथ चलने के लिए separation को auto पर रहने दें, ताकि इंडिकेटर अपने आसपास के बटन ग्रुप और मेन्यू से मेल खाए। किसी एक इंडिकेटर पर divider या gap तभी सेट करें जब उसी के पास अलग होने का कोई कारण हो।

करें

  • उसे ऐसा लेबल दें जो बताए कि क्या चल रहा है: “report.pdf अपलोड हो रही है”, न कि “प्रगति”। अगर उसके बग़ल में कोई कैप्शन दिखता है, तो वही शब्द इस्तेमाल करें।
  • जब प्रतिशत में बताना स्वाभाविक न हो, तो मान टेक्स्ट इस्तेमाल करें: “10 में से 3 फ़ाइलें”, “4 में से चरण 2”।
  • काम ख़त्म होने पर लोगों को शब्दों में बताएँ: यह संदेश कि काम हो गया, या क्या ग़लत हुआ और आगे क्या करना है।

न करें

  • विफलता बताने के लिए रंग का इस्तेमाल न करें। लाल बार उस व्यक्ति को कुछ नहीं बताता जो रंग नहीं देख सकता; इंडिकेटर को रोकें और उसके बग़ल में एक संदेश दिखाएँ।
  • इसे किसी स्तर के गेज के रूप में इस्तेमाल न करें, जैसे इस्तेमाल हुआ स्टोरेज या पासवर्ड की मज़बूती। वह मीटर है, जो एक अलग कंपोनेंट है।
  • मान को पीछे न जाने दें और काम पूरा होने से पहले अंत तक न कुदाएँ। बार बचे हुए इंतज़ार के बारे में एक वादा है।
  • एक काम के लिए कई इंडिकेटर न दिखाएँ। पूरे काम के लिए एक दिखाएँ, या हर उस आइटम के लिए एक जिसकी व्यक्ति को परवाह है।

सुलभता

रोल
progressbar
लेबलिंग
label is the accessible name. valueText, when given, replaces the platform's percentage as the spoken value. A visible caption next to the indicator is the product's composition; when it exists, use the same words as label.
न्यूनतम टार्गेट
दिखने वाला आकार छोटा होने पर भी हिट एरिया न्यूनतम टार्गेट साइज़ को पूरा करता है। minimum 32px · pointer 44px · spacing 8px · touch 48px

कीबोर्ड

कुंजियाँ क्रिया

टिप्पणियाँ

  • Not interactive: the indicator takes no input and is never focusable (PRG-10), so the minimum target holds without extending anything.
  • The value is read from the boundary between indicator and track: comp.progress-indicator.indicator.color must stay at least 3:1 against comp.progress-indicator.track.color and against the surface behind it, under divider and under gap alike. A faint track may leave the track's end hard to see; the stop indicator, in a system that gives it a size, marks it.
  • Indeterminate is announced as busy with no value: on the web a progressbar without aria-valuenow (and aria-busy), on Apple platforms a progress element with no value, on Android the indeterminate range info, in Flutter a progress indicator with a null value.
  • Reduced motion replaces movement with an opacity pulse of at most one per second (PRG-7), below the three-per-second flash threshold.

इससे जनरेट किया गया: specs/progress-indicator.spec.json, tokens/sys/measure.tokens.json

कंपोनेंट क्या सँभालता है

  • यह प्रोग्रेस बार का रोल देता है, जिसका नाम लेबल है। निश्चित होने पर यह रेंज, मौजूदा मान (रेंज के भीतर सीमित किया हुआ) और मान टेक्स्ट, अगर हो, देता है; अनिश्चित होने पर यह कोई मान नहीं देता और प्लैटफ़ॉर्म का व्यस्त स्टेट देता है। Flutter में अभी प्रोग्रेस बार का रोल या व्यस्त स्टेट नहीं है, इसलिए वहाँ यह लेबल और मान देता है।
  • इस पर कभी फ़ोकस नहीं जा सकता, और यह अपने बदलाव पढ़कर नहीं सुनाता। जब व्यक्ति इस तक पहुँचता है, तो सहायक तकनीक मौजूदा मान पढ़ती है।
  • जब मोशन कम करने का अनुरोध हो, तो मान का बदलाव तुरंत दिखता है, और अनिश्चित रूप चलना बंद करके अपनी ओपैसिटी को धीरे-धीरे घटाता-बढ़ाता है, ज़्यादा से ज़्यादा एक सेकंड में एक बार।
  • जब तक इसे देखा नहीं जा सकता, इसका लूप वाला ऐनिमेशन रुका रहता है — बैकग्राउंड में गए ऐप में हर जगह, और स्क्रॉल होकर नज़र से बाहर जाने पर या छिपी हुई स्क्रीन पर वहाँ, जहाँ प्लैटफ़ॉर्म यह जान सकता है — और देखे जा सकने पर फिर चल पड़ता है।
  • ख़ाली लेबल, रेंज से बाहर का मान और अनजान separation डीबग बिल्ड में रिपोर्ट किए जाते हैं।

आपको क्या करना है

  • काम के अंत की सूचना ख़ुद दें: लाइव रीजन में एक संदेश, या नतीजे पर फ़ोकस ले जाना। इंडिकेटर यह नहीं बताएगा कि काम पूरा हो गया या विफल हुआ।
  • अगर आप रंग बदलते हैं, तो इंडिकेटर के रंग को ट्रैक और उसके पीछे की सरफ़ेस के मुक़ाबले कम से कम 3:1 पर रखें, डिवाइडर के साथ भी और गैप के साथ भी। मान वहीं से पढ़ा जाता है जहाँ इंडिकेटर ट्रैक से मिलता है।
  • सबसे ऊँचे कंटेनर टोन वाली सरफ़ेस पर, जैसे भरे हुए कार्ड पर, ट्रैक मुश्किल से दिखता है: उसका टोन लगभग वही है। जहाँ इंडिकेटर ऐसी सरफ़ेस पर हो, वहाँ एक लेयर में comp.progress-indicator.track.color को किसी ज़्यादा गहरे रोल पर ले जाएँ। इंडिकेटर जो दिखाता है, वह तब भी वहीं से पढ़ा जाता है जहाँ वह ट्रैक से मिलता है।
  • अगर काम पेज के किसी हिस्से को रोके रखता है, तो उसके चलने तक उस हिस्से को व्यस्त के रूप में चिह्नित करें (वेब पर aria-busy)।