Support for Multi-Level Table Headers

Hello!

We would love for the table component to support multiple header levels. Today, it only allows a single header row, which prevents us from reproducing the layout accurately.

In our case, we need the table to support:

  1. Top-level grouped headers

    • Example groups: “Employee”, “Now”, “Last 12 Months”

    • These groups must span several columns and resize dynamically together with the table.

  2. Sub-headers within each group

    • For example, under Last 12 Months we need nested groups such as:

      • Average per month

      • Count

      • Turnover

      • Department name

    • Each of these sub-headers covers multiple specific columns.

  3. Dynamic resizing behavior

    • The grouped headers must automatically adapt to cell width changes inside the table.

    • Creating manual headers outside the table is not viable because they do not resize together with column width, causing misalignment

    • Example: