Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Component Properties
  • Usage

Was this helpful?

  1. Components

Progress

Progress components are built with two HTML elements, some CSS to set the width, and a few attributes.

PreviousPaginationNextRadios

Last updated 1 year ago

Was this helpful?

Component Properties

The Progress component takes a variety of properties to customize its appearance and content:

  • progress_utility_classes (array) (default: []): An array of utility classes to apply to the progress.

  • progress_bar_utility_classes (array) (default: []): An array of utility classes to apply to the progress bar.

  • color (string) (default: ''): The color of the progress bar.

  • progress_attributes (array) (default: []): An array of attributes to apply to the progress.

  • progress_bar_attributes (array) (default: []): An array of attributes to apply to the progress bar.

  • label (string) (default: ''): The label for the progress bar, also used for the aria label.

  • striped (bool) (default: true): Add stripes to the progress bar.

  • animated (bool) (default: true): Add animation to the progress bar.

  • stacked (bool) (default: false): Add multiple progress bars.

  • height (int) (default: 16): The height of the progress bar.

  • valuenow (int) (default: 0): The current value of the progress bar.

  • valuemin (int) (default: 0): The minimum value of the progress bar.

  • valuemax (int) (default: 100): The maximum value of the progress bar.

Usage

{%
  include 'radix:progress' with {
    color: 'secondary',
    animated: false,
    striped: false,
    label: '25% Complete',
    height: 20,
    valuenow: 60,
  }
%}
Bootstrap docs