AdaptTable for Tailwind

Right-to-left Tailwind data table

An Arabic table mirrors the entire layout — search, sort arrows, pinned columns and the pager. Not just translated strings: a genuinely flipped axis.

The filters popover anchors and flips from the correct edge; that is the part only a real RTL page can show.

locale="ar" sets the strings and the direction. The table and the popover are Tailwind.

locale="ar" flips the native table; the popover, backdrop and inputs carry the map's classes, and they open from the inline-end edge.

The code

import { DataTable } from "@adapttable/unstyled";

export function People({ rows, columns }) {
  return (
    <DataTable
      data={rows}
      columns={columns}
      rowKey={(row) => row.id}
      locale="ar"
      filtersMode="popover"
    />
  );
}

Install

pnpm add @adapttable/unstyled @adapttable/core

The same feature in the other kits

More Tailwind features

Reference: i18n-rtl. More of this kit: AdaptTable for Tailwind, or the live demo.