Progress Ready
The progress component is used to indicate any process that is ongoing and time sensitive
The progress component is a simple indicator that takes a value from 0 to 100, accessibility is improved via labels - expected screenreader behaviour is to stay silent when progress=0, to say "x, in progress" when progress is < 99 and "x, completed" when progress = 100
Examples #
Properties #
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
accessibleDescribedBy | accessible-described-by | Indicates the id of a component that describes the upload component. | string | undefined |
accessibleDescription | accessible-description | Aria description the button | string | undefined |
accessibleDetails | accessible-details | Aria Details of the component | string | undefined |
accessibleLabel | accessible-label | Indicates the aria-label of the component - this will get combined with an label+uploading when uploading, and label+upload complete when upload is complete | string | undefined |
accessibleLabelUpload | accessible-label-upload | Adds accessible label for upload in progress and upload complete states | string | getLocaleString(this.accessibleLabelUploadDefaults) |
accessibleLabelUploadDefaults | accessible-label-upload-defaults | Defaults for accessibleLabel | DuetLangObject | string | { fi: ["lähetys valmis", "lähetys käynnissä"], sv: ["Uppladdningen är klar", "Uppladdning pågår"], en: ["upload completed", "upload in progress"], } |
accessibleLabelledBy | accessible-labelled-by | String of id's that indicate alternative labels elements | string | undefined |
caption | caption | Caption (underneath label) that can be set as a way of adding extra information | string | undefined |
height | height | Height of progressbar | string | "10px" |
progress | progress | Progress of the bar, a value from 0-100 | number | 0 |
theme | theme | Theme of the input. | "" | "default" | "turva" | "" |
Usage #
This section includes guidelines for designers and developers about the usage of this component in different contexts.
Integration
For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.
Tutorials
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Building Layouts
TutorialsUsing CLI Tools
TutorialsCreating Custom Patterns
TutorialsServer Side Rendering
TutorialsSharing Prototypes
TutorialsUsage With Markdown
Troubleshooting
If you experience any issues while using a component, please head over to the Support page for more guidelines and help.