@swc-react/table
Version:
React and Next.js wrapper of the @spectrum-web-components/table component
37 lines (36 loc) • 2.17 kB
TypeScript
import type { EventName } from '@lit/react';
import { Table as SpTable } from '@spectrum-web-components/table';
import { TableBody as SpTableBody } from '@spectrum-web-components/table';
import { TableCell as SpTableCell } from '@spectrum-web-components/table';
import { TableCheckboxCell as SpTableCheckboxCell } from '@spectrum-web-components/table';
import { TableHead as SpTableHead } from '@spectrum-web-components/table';
import { TableHeadCell as SpTableHeadCell } from '@spectrum-web-components/table';
import { TableRow as SpTableRow } from '@spectrum-web-components/table';
import '@spectrum-web-components/table/sp-table-body.js';
import '@spectrum-web-components/table/sp-table-cell.js';
import '@spectrum-web-components/table/sp-table-checkbox-cell.js';
import '@spectrum-web-components/table/sp-table-head-cell.js';
import '@spectrum-web-components/table/sp-table-head.js';
import '@spectrum-web-components/table/sp-table-row.js';
import '@spectrum-web-components/table/sp-table.js';
export declare const Table: import("@lit/react").ReactWebComponent<SpTable, {
change: EventName<Event>;
rangeChanged: EventName<Event>;
}>;
export declare const TableBody: import("@lit/react").ReactWebComponent<SpTableBody, {}>;
export declare const TableCell: import("@lit/react").ReactWebComponent<SpTableCell, {}>;
export declare const TableCheckboxCell: import("@lit/react").ReactWebComponent<SpTableCheckboxCell, {}>;
export declare const TableHead: import("@lit/react").ReactWebComponent<SpTableHead, {}>;
export declare const TableHeadCell: import("@lit/react").ReactWebComponent<SpTableHeadCell, {
sorted: EventName<CustomEvent<any>>;
}>;
export declare const TableRow: import("@lit/react").ReactWebComponent<SpTableRow, {
sorted: EventName<Event>;
}>;
export type TableType = EventTarget & SpTable;
export type TableBodyType = EventTarget & SpTableBody;
export type TableCellType = EventTarget & SpTableCell;
export type TableCheckboxCellType = EventTarget & SpTableCheckboxCell;
export type TableHeadType = EventTarget & SpTableHead;
export type TableHeadCellType = EventTarget & SpTableHeadCell;
export type TableRowType = EventTarget & SpTableRow;