Business · Gutenberg

KPI Tiles block for WordPress

Metric tiles grid with numbers, labels, trend indicators and mini sparkline charts.

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

Metric tiles grid with numbers, labels, trend indicators and mini sparkline charts.

Inspector panels on this block: Tiles, Layout, Display Options. Those titles come from index.js, not from a shared template.

Behavior controls: “Trend Direction” options: Up (good), Down (bad), Down (good), Neutral; “Columns” options: 2, 3, 4.

Where to find it

Gutenberg inserter → Business → search “KPI Tiles” (block name `blockenberg/kpi-tiles` in block.json). Style it in the sidebar after insert.

How to use KPI Tiles block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “KPI Tiles”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open Tiles. Set “Label”, “Value”, “Trend (e.g. +18%)”, “Trend Direction”.
  4. Check the published page. The view script reads HTML data attributes: data-kpi-idx, data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
LabelText field in the inspector.
ValueText field in the inspector.
Trend (e.g. +18%)Text field in the inspector.
Trend DirectionSelect control; the chosen value is saved on the block. Options: Up (good); Down (bad); Down (good); Neutral.
Sparkline data (comma-separated numbers)Text field in the inspector.
ColumnsSelect control; the chosen value is saved on the block. Options: 2; 3; 4. block.json default: 4. Saved as `columns`.
Card Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `cardRadius`.
Card Padding (px)Numeric range control in the inspector. Range 12–48. block.json default: 24. Saved as `cardPadding`.
Show SparklineOn/off toggle in the inspector. On by default. Saved as `showSparkline`.
Show IconOn/off toggle in the inspector. On by default. Saved as `showIcon`.
Show TrendOn/off toggle in the inspector. On by default. Saved as `showTrend`.
Animate Numbers on ScrollOn/off toggle in the inspector. On by default. Saved as `animateNumbers`.
Icon SizeNumeric range control in the inspector. Range 18–56. block.json default: 32. Saved as `iconSize`.
Sparkline Height (px)Numeric range control in the inspector. Range 24–96. block.json default: 48. Saved as `sparklineHeight`.
Sparkline Width (px)Numeric range control in the inspector. Range 60–240. block.json default: 120. Saved as `sparklineWidth`.
Section BGColor control in the inspector. block.json default: transparent. Saved as `sectionBg`.
Card BGColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Card ShadowColor control in the inspector. block.json default: rgba(0,0,0,0.08). Saved as `cardShadow`.
Card BorderColor control in the inspector. block.json default: transparent. Saved as `borderColor`.
Value ColorColor control in the inspector. block.json default: #0f172a. Saved as `valueColor`.
Label ColorColor control in the inspector. block.json default: #64748b. Saved as `labelColor`.
Up Trend ColorColor control in the inspector. block.json default: #10b981. Saved as `upColor`.
Down Trend ColorColor control in the inspector. block.json default: #ef4444. Saved as `downColor`.
Down (Good) ColorColor control in the inspector. block.json default: #10b981. Saved as `downGoodColor`.
Sparkline LineColor control in the inspector. block.json default: #6366f1. Saved as `sparklineColor`.
Sparkline FillColor control in the inspector. block.json default: rgba(99,102,241,0.12). Saved as `sparklineFill`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “KPI Tiles”. It sits under Business. After insert, open Tiles and set “Label”, “Value”, “Trend (e.g. +18%)”, “Trend Direction”.

What makes KPI Tiles different from other Blockenberg blocks?

Metric tiles grid with numbers, labels, trend indicators and mini sparkline charts. Inspector labels on this block include “Label”, “Value”, “Trend (e.g. +18%)”, “Trend Direction”.

Is the KPI Tiles Gutenberg block free?

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

Can I style KPI Tiles 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: Tiles, Layout, Display Options).

Related business blocks

Get Blockenberg

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

Get Blockenberg