JSFiddle - React, Tailwind, and code Playground

by Flexmonster Pivot Table

HTML

<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div id="pivot-container"></div>

CSS

#fm-pivot-view>div.fm-ui-element.fm-ui.fm-fields-view-wrap.fm-fields-opened>div {
  /* Change width */
  width: 90%;
  /* Align container to center */
  left: 5%;
}

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  reportcomplete: () => {
    flexmonster.off("reportcomplete");
    flexmonster.openFieldsList()
  },
  report: {
    options: {
     grid: {
      type: "flat"
     }
    },
    dataSource: {
      mapping: {
        "Sales Category Name / Retail Category Name Approved by ABC Inc": {
          folder: "Props"
        },
        "Color": {
          folder: "Props"
        }
      },
      data: [{
        "Sales Category Name / Retail Category Name Approved by ABC Inc": "Accessories",
        "Color": "red",
        "Sales Quantity / Retail Data  Gathered & Provided by ABC Inc": 22
      },{
        "Sales Category Name / Retail Category Name Approved by ABC Inc": "Shoes",
        "Color": "black",
        "Sales Quantity / Retail Data  Gathered & Provided by ABC Inc": 7
      }]
    }
  }
});