Home / Function/ TableRtl() — ui Function Reference

TableRtl() — ui Function Reference

Architecture documentation for the TableRtl() function in table-rtl.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  ea9dea9e_7d11_004d_4423_d1b1ee5b98b4["TableRtl()"]
  8c8dd63a_2349_f526_21ae_0e38e20527d5["table-rtl.tsx"]
  ea9dea9e_7d11_004d_4423_d1b1ee5b98b4 -->|defined in| 8c8dd63a_2349_f526_21ae_0e38e20527d5
  style ea9dea9e_7d11_004d_4423_d1b1ee5b98b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/table-rtl.tsx lines 119–151

export function TableRtl() {
  const { dir, t } = useTranslation(translations, "ar")

  return (
    <Table dir={dir}>
      <TableCaption>{t.caption}</TableCaption>
      <TableHeader>
        <TableRow>
          <TableHead className="w-[100px]">{t.invoice}</TableHead>
          <TableHead>{t.status}</TableHead>
          <TableHead>{t.method}</TableHead>
          <TableHead className="text-right">{t.amount}</TableHead>
        </TableRow>
      </TableHeader>
      <TableBody>
        {invoices.map((invoice) => (
          <TableRow key={invoice.invoice}>
            <TableCell className="font-medium">{invoice.invoice}</TableCell>
            <TableCell>{t[invoice.paymentStatus]}</TableCell>
            <TableCell>{t[invoice.paymentMethod]}</TableCell>
            <TableCell className="text-right">{invoice.totalAmount}</TableCell>
          </TableRow>
        ))}
      </TableBody>
      <TableFooter>
        <TableRow>
          <TableCell colSpan={3}>{t.total}</TableCell>
          <TableCell className="text-right">$2,500.00</TableCell>
        </TableRow>
      </TableFooter>
    </Table>
  )
}

Subdomains

Frequently Asked Questions

What does TableRtl() do?
TableRtl() is a function in the ui codebase, defined in apps/v4/examples/base/table-rtl.tsx.
Where is TableRtl() defined?
TableRtl() is defined in apps/v4/examples/base/table-rtl.tsx at line 119.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free