← Componentes

Table

Tablas estructuradas para visualización de datos de alta densidad. Hairlines de 1px en --kenza-color-border, tipografía micro-editorial en mayúsculas para las cabeceras, soporte nativo para fotos de usuario (con Avatar), variantes de densidad vertical, filas alternadas (striped), selección múltiple y barra de filtros.

Lista de usuarios (Team & Users)

Ejemplo completo con avatares de usuario, estados semánticos, buscador por nombre/email en tiempo real, filtros por rol y estado, cabeceras ordenables, selección por filas con barra de acciones y paginación.

Usuario
Rol
Estado
Última actividad
Acciones
Alexander Vance
Alexander Vancealexander@kenzastudio.com
DesarrolloInactivoHace 2 semanas
Elena Rostova
Elena Rostovaelena@kenzastudio.com
DiseñoActivoHace 2 horas
Leila Qasim
Leila Qasimleila@kenzastudio.com
DiseñoActivoHace 40 min
Malik Ben-Salem
Malik Ben-Salemmalik.b@kenzastudio.com
DesarrolloPendienteAyer
Mostrando 1–4 de 8 resultados
Filas por página:
1 / 2

Playground de estilos y densidades

Densidad
Estilo
FacturaClienteFechaEstadoImporte
INV-001Studio Arcos12 Oct 2026Pagada$3,450.00
INV-002Lumina Labs14 Oct 2026Pendiente$1,820.00
INV-003Kore Architecture16 Oct 2026Pagada$5,900.00
INV-004Velox Motion08 Oct 2026Vencida$850.00
Total acumulado$12,020.00
<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Factura</TableHead>
      <TableHead>Cliente</TableHead>
      <TableHead>Fecha</TableHead>
      <TableHead>Estado</TableHead>
      <TableHead align="numeric">Importe</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    {invoices.map((inv) => (
      <TableRow key={inv.id}>
        <TableCell className="font-mono text-xs">{inv.id}</TableCell>
        <TableCell className="font-medium">{inv.client}</TableCell>
        <TableCell className="text-muted-foreground">{inv.date}</TableCell>
        <TableCell>{inv.status}</TableCell>
        <TableCell align="numeric">{inv.amount}</TableCell>
      </TableRow>
    ))}
  </TableBody>
  <TableFooter>
    <TableRow>
      <TableCell colSpan={4}>Total</TableCell>
      <TableCell align="numeric">$12,020.00</TableCell>
    </TableRow>
  </TableFooter>
</Table>

Densidad de celdas

Tres niveles de escala vertical: compact (logs y finanzas), default (administración estándar) y spacious (catálogo o portafolio).

density="compact"
TickerActivoPrecioVariación 24h
KNZKenza Treasury Vault$1,420.50+4.2%
ETHEthereum Reserve$3,150.80-1.1%
variant="striped"
TransacciónTipoFechaMonto
TX-9841Liquidación de honorarios18 Oct, 14:20$4,500.00
TX-9842Suscripción de software18 Oct, 11:05$240.00
TX-9843Cobro de regalías17 Oct, 19:40$8,920.00
"use client";

import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "./lib/cn";
import { EASE } from "./lib/motion";
import { useDismiss } from "./lib/use-dismiss";

export type TableDensity = "compact" | "default" | "spacious";
export type TableVariant = "default" | "striped" | "bordered" | "borderless";
export type TableAlign = "left" | "center" | "right" | "numeric";

interface TableContextValue {
  density: TableDensity;
  variant: TableVariant;
}

const TableContext = React.createContext<TableContextValue>({
  density: "default",
  variant: "default",
});

export function useTableContext() {
  return React.useContext(TableContext);
}

/* ==========================================================================
   Table (Root)
   ========================================================================== */

export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
  /** Densidad vertical y espaciado de celdas */
  density?: TableDensity;
  /** Estilo visual de líneas y fondos */
  variant?: TableVariant;
  /** Si true (default), envuelve la tabla en un contenedor con scroll horizontal y borde */
  wrapper?: boolean;
  /** Clases adicionales para el contenedor exterior */
  containerClassName?: string;
}

export const Table = React.forwardRef<HTMLTableElement, TableProps>(
  (
    {
      className,
      containerClassName,
      density = "default",
      variant = "default",
      wrapper = true,
      children,
      ...props
    },
    ref,
  ) => {
    const tableElement = (
      <TableContext.Provider value={{ density, variant }}>
        <table
          ref={ref}
          className={cn(
            "w-full caption-bottom text-left text-sm border-collapse",
            variant === "bordered" && "border border-border",
            className,
          )}
          {...props}
        >
          {children}
        </table>
      </TableContext.Provider>
    );

    if (!wrapper) return tableElement;

    return (
      <div
        className={cn(
          "relative w-full overflow-x-auto rounded-md border border-border bg-background",
          containerClassName,
        )}
      >
        {tableElement}
      </div>
    );
  },
);
Table.displayName = "Table";

/* ==========================================================================
   TableHeader
   ========================================================================== */

export interface TableHeaderProps
  extends React.HTMLAttributes<HTMLTableSectionElement> {}

export const TableHeader = React.forwardRef<
  HTMLTableSectionElement,
  TableHeaderProps
>(({ className, ...props }, ref) => (
  <thead
    ref={ref}
    className={cn(
      "border-b border-border bg-muted/20 [&_tr]:border-b",
      className,
    )}
    {...props}
  />
));
TableHeader.displayName = "TableHeader";

/* ==========================================================================
   TableBody
   ========================================================================== */

export interface TableBodyProps
  extends React.HTMLAttributes<HTMLTableSectionElement> {}

export const TableBody = React.forwardRef<
  HTMLTableSectionElement,
  TableBodyProps
>(({ className, ...props }, ref) => (
  <tbody
    ref={ref}
    className={cn("[&_tr:last-child]:border-0", className)}
    {...props}
  />
));
TableBody.displayName = "TableBody";

/* ==========================================================================
   TableFooter
   ========================================================================== */

export interface TableFooterProps
  extends React.HTMLAttributes<HTMLTableSectionElement> {}

export const TableFooter = React.forwardRef<
  HTMLTableSectionElement,
  TableFooterProps
>(({ className, ...props }, ref) => (
  <tfoot
    ref={ref}
    className={cn(
      "border-t border-border bg-muted/20 font-medium text-foreground [&>tr]:last:border-b-0",
      className,
    )}
    {...props}
  />
));
TableFooter.displayName = "TableFooter";

/* ==========================================================================
   TableRow
   ========================================================================== */

export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
  /** Marca la fila como seleccionada con tinte de fondo suave */
  selected?: boolean;
  /** Hover interactivo con transición de color */
  interactive?: boolean;
}

export const TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(
  ({ className, selected, interactive = true, ...props }, ref) => {
    const { variant } = useTableContext();

    return (
      <tr
        ref={ref}
        data-state={selected ? "selected" : undefined}
        className={cn(
          "transition-colors duration-150",
          EASE,
          variant !== "borderless" && "border-b border-border",
          variant === "striped" && "even:bg-muted/15",
          interactive && "hover:bg-muted/30",
          selected && "bg-muted/40 hover:bg-muted/50",
          className,
        )}
        {...props}
      />
    );
  },
);
TableRow.displayName = "TableRow";

/* ==========================================================================
   TableHead
   ========================================================================== */

export interface TableHeadProps
  extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, "align"> {
  /** Alineación del texto en la celda de cabecera */
  align?: TableAlign;
  /** Si la columna es ordenable */
  sortable?: boolean;
  /** Dirección de ordenamiento actual */
  sortDirection?: "asc" | "desc" | false | null;
  /** Callback al hacer clic para alternar orden */
  onSort?: () => void;
}

export const TableHead = React.forwardRef<
  HTMLTableCellElement,
  TableHeadProps
>(
  (
    {
      className,
      align = "left",
      sortable,
      sortDirection,
      onSort,
      children,
      ...props
    },
    ref,
  ) => {
    const { density, variant } = useTableContext();

    const densityClasses = {
      compact: "h-8 px-3 text-[11px]",
      default: "h-10 px-4 text-xs",
      spacious: "h-12 px-6 text-xs",
    }[density];

    const alignClasses = {
      left: "text-left",
      center: "text-center",
      right: "text-right",
      numeric: "text-right font-mono tabular-nums",
    }[align];

    return (
      <th
        ref={ref}
        aria-sort={
          sortDirection === "asc"
            ? "ascending"
            : sortDirection === "desc"
            ? "descending"
            : undefined
        }
        className={cn(
          "font-medium uppercase tracking-[0.08em] text-muted-foreground select-none align-middle whitespace-nowrap",
          densityClasses,
          alignClasses,
          variant === "bordered" && "border-r border-border last:border-r-0",
          sortable && "cursor-pointer hover:text-foreground",
          className,
        )}
        onClick={sortable ? onSort : undefined}
        {...props}
      >
        {sortable ? (
          <div
            className={cn(
              "inline-flex items-center gap-1.5",
              align === "right" || align === "numeric"
                ? "justify-end"
                : align === "center"
                ? "justify-center"
                : "justify-start",
            )}
          >
            <span>{children}</span>
            <span
              className={cn(
                "flex h-3.5 w-3.5 shrink-0 items-center justify-center transition-colors",
                sortDirection ? "text-primary" : "text-muted-foreground/40",
              )}
              aria-hidden="true"
            >
              {sortDirection === "asc" ? (
                <svg
                  className="h-3 w-3"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  strokeWidth="2.5"
                  strokeLinecap="round"
                  strokeLinejoin="round"
                >
                  <path d="m18 15-6-6-6 6" />
                </svg>
              ) : sortDirection === "desc" ? (
                <svg
                  className="h-3 w-3"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  strokeWidth="2.5"
                  strokeLinecap="round"
                  strokeLinejoin="round"
                >
                  <path d="m6 9 6 6 6-6" />
                </svg>
              ) : (
                <svg
                  className="h-3 w-3 opacity-60"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  strokeWidth="2"
                  strokeLinecap="round"
                  strokeLinejoin="round"
                >
                  <path d="m7 15 5 5 5-5" />
                  <path d="m7 9 5-5 5 5" />
                </svg>
              )}
            </span>
          </div>
        ) : (
          children
        )}
      </th>
    );
  },
);
TableHead.displayName = "TableHead";

/* ==========================================================================
   TableCell
   ========================================================================== */

export interface TableCellProps
  extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, "align"> {
  /** Alineación del contenido de la celda */
  align?: TableAlign;
}

export const TableCell = React.forwardRef<
  HTMLTableCellElement,
  TableCellProps
>(({ className, align = "left", children, ...props }, ref) => {
  const { density, variant } = useTableContext();

  const densityClasses = {
    compact: "py-2 px-3 text-xs",
    default: "py-3.5 px-4 text-sm",
    spacious: "py-5 px-6 text-sm",
  }[density];

  const alignClasses = {
    left: "text-left",
    center: "text-center",
    right: "text-right",
    numeric: "text-right font-mono tabular-nums",
  }[align];

  return (
    <td
      ref={ref}
      className={cn(
        "align-middle",
        densityClasses,
        alignClasses,
        variant === "bordered" && "border-r border-border last:border-r-0",
        className,
      )}
      {...props}
    >
      {children}
    </td>
  );
});
TableCell.displayName = "TableCell";

/* ==========================================================================
   TableCaption
   ========================================================================== */

export interface TableCaptionProps
  extends React.HTMLAttributes<HTMLTableCaptionElement> {}

export const TableCaption = React.forwardRef<
  HTMLTableCaptionElement,
  TableCaptionProps
>(({ className, ...props }, ref) => (
  <caption
    ref={ref}
    className={cn("mt-4 text-xs text-muted-foreground text-left px-4 pb-2", className)}
    {...props}
  />
));
TableCaption.displayName = "TableCaption";

/* ==========================================================================
   TableEmpty
   ========================================================================== */

export interface TableEmptyProps {
  /** Cantidad de columnas que abarca la fila vacía */
  colSpan: number;
  /** Título del estado vacío */
  title?: string;
  /** Descripción explicativa */
  description?: string;
  /** Acción o botón opcional */
  action?: React.ReactNode;
  /** Icono personalizado */
  icon?: React.ReactNode;
  className?: string;
}

export function TableEmpty({
  colSpan,
  title = "Sin resultados",
  description = "No se encontraron elementos que coincidan con la búsqueda o filtro aplicado.",
  action,
  icon,
  className,
}: TableEmptyProps) {
  return (
    <TableRow interactive={false}>
      <TableCell
        colSpan={colSpan}
        className={cn("py-12 text-center align-middle", className)}
      >
        <div className="mx-auto flex max-w-sm flex-col items-center justify-center text-center">
          <div className="flex h-10 w-10 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground mb-3">
            {icon ?? (
              <svg
                className="h-5 w-5"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                strokeWidth="1.5"
                strokeLinecap="round"
                strokeLinejoin="round"
                aria-hidden="true"
              >
                <circle cx="11" cy="11" r="8" />
                <path d="m21 21-4.3-4.3" />
              </svg>
            )}
          </div>
          <h4 className="text-sm font-medium text-foreground">{title}</h4>
          {description && (
            <p className="mt-1 text-xs text-muted-foreground">{description}</p>
          )}
          {action && <div className="mt-4">{action}</div>}
        </div>
      </TableCell>
    </TableRow>
  );
}

/* ==========================================================================
   TableToolbar
   ========================================================================== */

export interface TableToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
  /** Cantidad de elementos seleccionados actualmente */
  selectedCount?: number;
  /** Acciones a mostrar cuando hay elementos seleccionados */
  selectedActions?: React.ReactNode;
}

export const TableToolbar = React.forwardRef<HTMLDivElement, TableToolbarProps>(
  ({ className, selectedCount = 0, selectedActions, children, ...props }, ref) => {
    return (
      <div
        ref={ref}
        className={cn(
          "flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between",
          className,
        )}
        {...props}
      >
        {selectedCount > 0 && selectedActions ? (
          <div className="flex w-full items-center justify-between gap-3 rounded-md border border-primary/30 bg-primary/5 px-3 py-2 text-xs">
            <span className="font-medium text-foreground">
              {selectedCount} {selectedCount === 1 ? "fila seleccionada" : "filas seleccionadas"}
            </span>
            <div className="flex items-center gap-2">{selectedActions}</div>
          </div>
        ) : (
          children
        )}
      </div>
    );
  },
);
TableToolbar.displayName = "TableToolbar";

/* ==========================================================================
   TablePagination
   ========================================================================== */

export interface TablePaginationProps
  extends React.HTMLAttributes<HTMLDivElement> {
  /** Página actual (1-indexed) */
  page: number;
  /** Total de páginas */
  totalPages: number;
  /** Total de elementos en el conjunto */
  totalItems?: number;
  /** Cantidad de elementos / filas por página */
  pageSize?: number;
  /** Opciones de tamaño de página (ej. [5, 10, 20, 50]). Por defecto [5, 10, 20, 50] */
  pageSizeOptions?: number[];
  /** Etiqueta descriptiva para el selector de elementos por página */
  pageSizeLabel?: string;
  /** Callback para cambiar de página */
  onPageChange: (newPage: number) => void;
  /** Callback para cambiar tamaño de página */
  onPageSizeChange?: (newSize: number) => void;
}

export interface TablePageSizeSelectProps {
  value: number;
  options: number[];
  onChange: (val: number) => void;
  ariaLabel?: string;
  className?: string;
}

export function TablePageSizeSelect({
  value,
  options,
  onChange,
  ariaLabel = "Filas por página",
  className,
}: TablePageSizeSelectProps) {
  const [open, setOpen] = React.useState(false);
  const containerRef = React.useRef<HTMLDivElement>(null);
  useDismiss(open, () => setOpen(false), containerRef);

  return (
    <div ref={containerRef} className={cn("relative inline-flex items-center", className)}>
      <button
        type="button"
        role="combobox"
        aria-haspopup="listbox"
        aria-expanded={open}
        aria-label={ariaLabel}
        onClick={() => setOpen((prev) => !prev)}
        className={cn(
          "inline-flex h-7 items-center justify-between gap-2 rounded border border-border bg-background px-2 text-xs font-mono text-foreground outline-none transition-colors",
          EASE,
          "hover:bg-muted hover:border-muted-foreground/30 focus-visible:ring-1 focus-visible:ring-primary",
          open && "border-primary/50",
        )}
      >
        <span>{value}</span>
        <svg
          className={cn(
            "h-3 w-3 text-muted-foreground transition-transform duration-150",
            EASE,
            open && "rotate-180 text-foreground",
          )}
          viewBox="0 0 24 24"
          fill="none"
          stroke="currentColor"
          strokeWidth="2"
          strokeLinecap="round"
          strokeLinejoin="round"
          aria-hidden="true"
        >
          <path d="m6 9 6 6 6-6" />
        </svg>
      </button>

      {open && (
        <div
          role="listbox"
          className={cn(
            "absolute bottom-full left-0 z-30 mb-1 min-w-[4.5rem] overflow-hidden rounded-md border border-border bg-background p-1 shadow-lg",
          )}
        >
          {options.map((opt) => {
            const isSelected = opt === value;
            return (
              <button
                key={opt}
                type="button"
                role="option"
                aria-selected={isSelected}
                onClick={() => {
                  onChange(opt);
                  setOpen(false);
                }}
                className={cn(
                  "flex w-full items-center justify-between rounded px-2 py-1 text-xs font-mono transition-colors text-left",
                  isSelected
                    ? "bg-muted text-foreground font-medium"
                    : "text-muted-foreground hover:bg-muted/60 hover:text-foreground",
                )}
              >
                <span>{opt}</span>
                {isSelected && (
                  <svg
                    className="h-3 w-3 text-primary ml-1.5"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    strokeWidth="2.5"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                    aria-hidden="true"
                  >
                    <path d="M5 12.5l4.5 4.5L19 7.5" />
                  </svg>
                )}
              </button>
            );
          })}
        </div>
      )}
    </div>
  );
}

export function TablePagination({
  className,
  page,
  totalPages,
  totalItems,
  pageSize,
  pageSizeOptions = [5, 10, 20, 50],
  pageSizeLabel = "Filas por página:",
  onPageChange,
  onPageSizeChange,
  ...props
}: TablePaginationProps) {
  const canPrev = page > 1;
  const canNext = page < totalPages;

  const startItem = totalItems !== undefined && pageSize !== undefined
    ? Math.min((page - 1) * pageSize + 1, totalItems)
    : undefined;
  const endItem = totalItems !== undefined && pageSize !== undefined
    ? Math.min(page * pageSize, totalItems)
    : undefined;

  return (
    <div
      className={cn(
        "flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between text-xs text-muted-foreground",
        className,
      )}
      {...props}
    >
      <div className="flex flex-wrap items-center gap-4">
        {totalItems !== undefined && startItem !== undefined && endItem !== undefined ? (
          <span>
            Mostrando <span className="font-medium text-foreground font-mono">{startItem}</span>–
            <span className="font-medium text-foreground font-mono">{endItem}</span> de{" "}
            <span className="font-medium text-foreground font-mono">{totalItems}</span> resultados
          </span>
        ) : (
          <span>
            Página <span className="font-medium text-foreground font-mono">{page}</span> de{" "}
            <span className="font-medium text-foreground font-mono">{Math.max(1, totalPages)}</span>
          </span>
        )}

        {onPageSizeChange && pageSize && (
          <div className="flex items-center gap-2">
            <span className="text-muted-foreground">{pageSizeLabel}</span>
            <TablePageSizeSelect
              value={pageSize}
              options={pageSizeOptions}
              onChange={onPageSizeChange}
              ariaLabel={pageSizeLabel}
            />
          </div>
        )}
      </div>

      <div className="flex items-center gap-1.5 self-end sm:self-auto">
        <button
          type="button"
          disabled={!canPrev}
          onClick={() => onPageChange(page - 1)}
          className="inline-flex h-7 items-center justify-center gap-1 rounded border border-border bg-background px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-muted disabled:pointer-events-none disabled:opacity-40"
        >
          <svg
            className="h-3 w-3"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            aria-hidden="true"
          >
            <path d="m15 18-6-6 6-6" />
          </svg>
          <span>Anterior</span>
        </button>

        <span className="px-2 font-mono text-xs">
          {page} / {Math.max(1, totalPages)}
        </span>

        <button
          type="button"
          disabled={!canNext}
          onClick={() => onPageChange(page + 1)}
          className="inline-flex h-7 items-center justify-center gap-1 rounded border border-border bg-background px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-muted disabled:pointer-events-none disabled:opacity-40"
        >
          <span>Siguiente</span>
          <svg
            className="h-3 w-3"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            aria-hidden="true"
          >
            <path d="m9 18 6-6-6-6" />
          </svg>
        </button>
      </div>
    </div>
  );
}

Código real de packages/ui/src/table.tsx.

Uso básico

import {
  Table,
  TableHeader,
  TableBody,
  TableRow,
  TableHead,
  TableCell,
} from "./components/ui/table";

<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Nombre</TableHead>
      <TableHead>Rol</TableHead>
      <TableHead align="numeric">Salario</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>Zoraida Al-Khatib</TableCell>
      <TableCell>Directora de Arte</TableCell>
      <TableCell align="numeric">$94,000</TableCell>
    </TableRow>
  </TableBody>
</Table>

Patrón: Tabla de usuarios con Avatar

// Tabla de usuarios completa con Avatar, filtros, ordenamiento y selección
<Table>
  <TableHeader>
    <TableRow>
      <TableHead className="w-10">
        <Checkbox checked={allSelected} onCheckedChange={toggleAll} />
      </TableHead>
      <TableHead sortable sortDirection={sortDir} onSort={handleSort}>
        Usuario
      </TableHead>
      <TableHead>Rol</TableHead>
      <TableHead>Estado</TableHead>
      <TableHead align="right">Acciones</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    {users.map((user) => (
      <TableRow key={user.id} selected={isSelected(user.id)}>
        <TableCell>
          <Checkbox checked={isSelected(user.id)} onCheckedChange={...} />
        </TableCell>
        <TableCell>
          <div className="flex items-center gap-3">
            <Avatar src={user.avatarUrl} fallback={user.fallback} status="online" size="sm" />
            <div className="flex flex-col">
              <span className="font-medium text-foreground">{user.name}</span>
              <span className="text-xs text-muted-foreground font-mono">{user.email}</span>
            </div>
          </div>
        </TableCell>
        <TableCell>{user.role}</TableCell>
        <TableCell>
          <Badge variant="success" size="sm">{user.status}</Badge>
        </TableCell>
        <TableCell align="right">
          <Button size="xs" variant="ghost">Editar</Button>
        </TableCell>
      </TableRow>
    ))}
  </TableBody>
</Table>

API de Componentes

Table

PropTipoDefault
density"compact" | "default" | "spacious""default"
variant"default" | "striped" | "bordered" | "borderless""default"
wrapperbooleantrue
containerClassNamestring—

TableRow

PropTipoDefault
selectedbooleanfalse
interactivebooleantrue

TableHead

PropTipoDefault
align"left" | "center" | "right" | "numeric""left"
sortablebooleanfalse
sortDirection"asc" | "desc" | false | nullnull
onSort() => void—

TableCell

PropTipoDefault
align"left" | "center" | "right" | "numeric""left"

TablePagination

PropTipoDefault
pagenumber1
totalPagesnumber—
totalItemsnumber—
pageSizenumber—
pageSizeOptionsnumber[][5, 10, 20, 50]
pageSizeLabelstring"Filas por página:"
onPageChange(newPage: number) => void—
onPageSizeChange(newSize: number) => void—

TableEmpty

PropTipoDefault
colSpannumber—
titlestring"Sin resultados"
descriptionstring—
actionReactNode—
iconReactNode—