Content · Gutenberg

Progress Bar block for WordPress

Display animated progress bars with customizable styles and labels.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Display animated progress bars with customizable styles and labels.

Inspector panels on this block: Layout, Labels & Percentage, Effects, Title, Progress Items. Those titles come from index.js, not from a shared template.

Behavior controls: “Layout — Style” options: Default, Rounded, Flat, Thin, Thick; “Percentage Position” options: Right of Label, Inside Bar, Above Bar, Hidden.

Where to find it

Gutenberg inserter → Content → search “Progress Bar” (block name `blockenberg/progress-bar` in block.json). Style it in the sidebar after insert.

How to use Progress Bar block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Progress Bar”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Layout. Set “Layout — Style”, “Bar Height”, “Bar Spacing”, “Border Radius”.
  4. Check the published page. The view script reads HTML data attributes: data-animate, data-color, data-glow, data-gradient, data-gradient-angle, data-items, data-percentage, data-percentage-position. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Layout — StyleSelect control; the chosen value is saved on the block. Options: Default; Rounded; Flat; Thin; Thick. block.json default: default. Saved as `layoutStyle`.
Bar HeightNumeric range control in the inspector. Range 4–60. block.json default: 20. Saved as `barHeight`.
Bar SpacingNumeric range control in the inspector. Range 8–60. block.json default: 24. Saved as `barSpacing`.
Border RadiusNumeric range control in the inspector. Range 0–30. block.json default: 10. Saved as `barRadius`.
Show LabelsOn/off toggle in the inspector. On by default. Saved as `showLabels`.
Show PercentageOn/off toggle in the inspector. On by default. Saved as `showPercentage`.
Percentage PositionSelect control; the chosen value is saved on the block. Options: Right of Label; Inside Bar; Above Bar; Hidden. block.json default: right. Saved as `percentagePosition`.
Animate on ScrollOn/off toggle in the inspector. On by default. Saved as `animateOnScroll`.
Animation Duration (ms)Numeric range control in the inspector. Range 200–3000. block.json default: 1000. Saved as `animationDuration`.
StripesOn/off toggle in the inspector. Off by default. Saved as `stripes`.
Animated StripesOn/off toggle in the inspector. Off by default. Saved as `stripesAnimated`.
Glow EffectOn/off toggle in the inspector. Off by default. Saved as `glowEffect`.
GradientOn/off toggle in the inspector. Off by default. Saved as `gradient`.
Gradient AngleNumeric range control in the inspector. Range 0–360. block.json default: 90. Saved as `gradientAngle`.
Show TitleOn/off toggle in the inspector. Off by default. Saved as `showTitle`.
LabelText field in the inspector.
PercentageNumeric range control in the inspector. Range 0–100.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.
Label (Label Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `labelTypo`.
Percentage (Pct Typo)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `pctTypo`.
Track ColorColor control in the inspector. block.json default: #e5e7eb. Saved as `trackColor`.
Label ColorColor control in the inspector. block.json default: #1f2937. Saved as `labelColor`.
Percentage ColorColor control in the inspector. block.json default: #6b7280. Saved as `percentageColor`.
Title ColorColor control in the inspector. block.json default: #1f2937. Saved as `titleColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Progress Bar block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Progress Bar”. It sits under Content. After insert, open Layout and set “Layout — Style”, “Bar Height”, “Bar Spacing”, “Border Radius”.

What makes Progress Bar different from other Blockenberg blocks?

Display animated progress bars with customizable styles and labels. Inspector labels on this block include “Layout — Style”, “Bar Height”, “Bar Spacing”, “Border Radius”.

Is the Progress Bar Gutenberg block free?

Yes. Progress Bar ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Progress Bar to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Layout, Labels & Percentage, Effects, Title).

Related content blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Progress Bar from the Gutenberg inserter.

Get Blockenberg