Movatterモバイル変換


[0]ホーム

URL:


CoreUI Angular Logo
Framework:
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewAutocompletePRODate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

Angular Progress Component

Documentation and examples for using Angular progress bars featuring support for stacked bars, animated backgrounds, and text labels.

Examples

Progress components are built with two HTML elements, some CSS to set the width, and a few attributes. We don't usethe HTML5<progress> element, ensuring you can stack progress bars, animate them, and place text labels over them.

New markup in CoreUI v5

We’ve simplified the HTML structure for progress bars to improve accessibility while still maintaining backward compatibility with the previous structure.

Basic usage

Loading...
Loading...

Labels

Add labels to your progress bars by placing text within the<c-progress>.

25% Long label text for the progress bar, set it to a dark color...
Loading...
Loading...

Please take note that the default setting for the<c-progress> content is to be limited by theoverflow: hidden property. This is done to prevent the content from extending beyond the progress bar's boundaries. However, if the progress bar is shorter than its label, the content may be truncated and become difficult to read. To modify this behavior, you can use the.overflow-visible class from the overflow utilities. Just make sure to specify a specific text color to ensure readability. Do keep in mind that this approach does not consider color modes at the moment.

Height

We only set aheight value on the<c-progress>, so if you change that value, the inner<c-progress-bar> will automatically resize accordingly.

Loading...
Loading...

Backgrounds

Usecolor prop to change the appearance of individual progress bars.

It is important to choose an appropriate text color when incorporating labels into progress bars with a custom background color. This ensures readability and adequate contrast for the labels.

25%75%
Loading...
Loading...

Multiple bars

New markup in CoreUI v5

We added a new stacked component to group multiple progress bars into a single stacked progress bar.

Include multiple progress bars in a<c-progress-stacked> component to create a single stacked progress bar.

Loading...
Loading...

Striped

Addvariant="striped" to any<c-progress> to apply a stripe via CSS gradient over the progress bar's background color.

Loading...
Loading...

Animated stripes

The striped gradient can also be animated. Addanimated property to<c-progress> to animate the stripes right to left via CSS3 animations.

Loading...
Loading...

Thin

Thin variant of progress

Loading...
Loading...

Styling

Learn how to customize the Angular Progress component with CSS classes, variables, and SASS for flexible styling and seamless integration into your design.

CSS variables

Angular Progress supports CSS variables for easy customization. These variables are set via SASS but allow direct overrides in your stylesheets or inline styles.

How to use CSS variables

Loading...
Loading...

SASS variables

Accessibility

The Angular Progress component is built with accessibility in mind. Each progressbar includes the following ARIA attributes:

  • role:progressbar
  • aria-valuemin: Minimum value
  • aria-valuemax: Maximum value
  • aria-valuenow: Current value

API reference

Progress Module

Progress Standalone


c-progress

component

Inputs

namedescriptiontypedefault
thinDisplays thin progress.booleanfalse
whiteChange the default color to white.booleanfalse
heightSets the height of the component. If you set that value the innerc-progress-bar will automatically resize accordingly.number
animatedUse to animate the stripes right to left via CSS3 animations.booleanfalse
colorSets the color context of the component to one of CoreUI’s themed colors.string
roleSet default html role attribute.string'progressbar'
valueThe percent to progress the ProgressBar.number0
variantSet the progress bar variant to optional striped."striped"

c-progress-bar

  • for backward compatibility

Inputs

namedescriptiontypedefault
animatedUse to animate the stripes right to left via CSS3 animations.booleanfalse
colorSets the color context of the component to one of CoreUI’s themed colors.string
roleSet default html role attribute.string'progressbar'
valueThe percent to progress the ProgressBar.number0
variantSet the progress bar variant to optional striped."striped"

CoreUI for Angular is Open Source UI Components Library for Angular.

Currently v5.5.17 Code licensed MIT, docs CC BY 3.0 .
CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp