Skip to content

Builder compatibility table in WordPress

A documentation table showing where a kit or component has been tested (static HTML, WordPress, Elementor, Webflow, v0…), with status, last test date and a remark, filterable by status.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

pattern.html
<!-- wp:html -->
<section class="tcb" data-tcb aria-labelledby="tcb-titre" lang="fr">
        <div class="tcb-intro">
          <p class="tcb-eyebrow">Documentation · Kit Atelier 2.4</p>
          <h2 class="tcb-title" id="tcb-titre">Compatibilité par outil</h2>
          <p class="tcb-lead">Où le kit a été installé et vérifié, avec la date du dernier test. Mis à jour le <time datetime="2026-11-18">18 novembre 2026</time>.</p>
        </div>
        <div class="tcb-group" role="group" aria-labelledby="tcb-filtre" data-tcb-tools hidden>
          <span class="tcb-glabel" id="tcb-filtre">Afficher</span>
          <div class="tcb-chips">
              <button class="tcb-chip" type="button" aria-pressed="true" data-tcb-pick="">Tous <span class="tcb-count">(7)</span></button>
              <button class="tcb-chip" type="button" aria-pressed="false" data-tcb-pick="ok">Testé <span class="tcb-count">(3)</span></button>
script.js
(() => {
  if (!document.querySelector(".tcb")) return;
  document.querySelectorAll("[data-tcb]").forEach((root) => {
    const on = (el, type, fn) => el.addEventListener(type, fn);
    const rows = [...root.querySelector("tbody").rows];
    const status = root.querySelector("[data-tcb-status]");
    const picks = [...root.querySelectorAll("button[data-tcb-pick]")];
    const names = { ok: "testés", part: "partiels", none: "non testés" };
    let state = "";
    root.querySelector("[data-tcb-tools]").hidden = false;

    const render = () => {
style.css
:root {
  --tcb-card: #ffffff;
  --tcb-text: #1a2230;
  --tcb-muted: #4b5563;
  --tcb-line: #d8dee8;
  --tcb-head: #f2f5f9;
  --tcb-accent: #0f5f8c;
  --tcb-on-accent: #ffffff;
  --tcb-ok: #dcfce7;
  --tcb-ok-text: #14532d;
  --tcb-part: #fef3c7;
  --tcb-part-text: #78350f;
tableau-compatibilite-builders.php
<?php
/**
 * Plugin Name: Forge, Tableau de compatibilité par builder
 * Description: Un tableau de documentation qui indique où un kit ou un composant a été testé (HTML statique, WordPress, Elementor, Webflow, v0…), avec état, date du dernier test et remarque, filtrable par état. Ajoute la composition « Tableau de compatibilité par builder » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-tableau-compatibilite-builders
 *

Free component: copy it freely, including for commercial projects.

Data tables components in WordPress
  • A table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A timetable table sorted by column and filtered with level and free-place chips, whose rows each become a card on phones.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A filterable table whose visible rows export in one click to a CSV file that opens cleanly in Excel or LibreOffice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A price table by service: one package to pick, options to tick, and the total with the estimated time recalculated on every click.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A product spec sheet as two-column tables in native collapsible sections, with a button to open or close them all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The results of a race or competition, sortable by place, name or category, with the podium highlighted, the gap to the winner and the sort order announced.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component