Interactive · Gutenberg

Stopwatch block for WordPress

Interactive stopwatch with start/pause/reset controls and lap recording. Fully styled with customizable colors, display format, and rich Inspector settings.

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

Interactive stopwatch with start/pause/reset controls and lap recording. Fully styled with customizable colors, display format, and rich Inspector settings.

Inspector panels on this block: Stopwatch Settings, Sizing. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Interactive → search “Stopwatch” (block name `blockenberg/stopwatch` in block.json). Style it in the sidebar after insert.

How to use Stopwatch block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Stopwatch”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Stopwatch Settings. Set “Show title”, “Show subtitle”, “Show lap recorder”, “Show milliseconds”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Show titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Show lap recorderOn/off toggle in the inspector. On by default. Saved as `showLaps`.
Show millisecondsOn/off toggle in the inspector. On by default. Saved as `showMilliseconds`.
Max laps to showNumeric range control in the inspector. Range 5–50. block.json default: 20. Saved as `maxLaps`.
Max width (px)Numeric range control in the inspector. Range 320–900. block.json default: 560. Saved as `contentMaxWidth`.
Clock font sizeNumeric range control in the inspector. Range 32–120. block.json default: 64. Saved as `clockFontSize`.

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 Stopwatch block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Stopwatch”. It sits under Interactive. After insert, open Stopwatch Settings and set “Show title”, “Show subtitle”, “Show lap recorder”, “Show milliseconds”.

What makes Stopwatch different from other Blockenberg blocks?

Interactive stopwatch with start/pause/reset controls and lap recording. Fully styled with customizable colors, display format, and rich Inspector settings. Inspector labels on this block include “Show title”, “Show subtitle”, “Show lap recorder”, “Show milliseconds”.

Is the Stopwatch Gutenberg block free?

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

Can I style Stopwatch 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: Stopwatch Settings, Sizing).

Related interactive blocks

Get Blockenberg

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

Get Blockenberg