Skip to content
Data TableAPI Reference

Public import paths

comins-table@0.2.2React

comins-table publishes the five paths below. Do not import unlisted internal dist/* files directly.

import { CominsTable, createCominsTableState } from 'comins-table';

Provides the React component, public types, React-compatible state functions and Tree/Summary helpers. Most applications should use the root path.

import {
createCominsTableState,
parseCominsClipboardText,
pasteCominsText,
} from 'comins-table/core';

Provides framework-neutral runtime and types. Column/group labels are strings; theme and renderer metadata are excluded. Put cell guards directly on cell.disabled, cell.copyable, and cell.pasteable. This layer does not access the DOM or OS clipboard.

import {
copyCominsCellRange,
parseCominsClipboardText,
pasteCominsText,
} from 'comins-table/clipboard';

A focused path for React-state copy, paste and fill functions and types, retaining the root contract. For neutral state, use the corresponding /core helpers; do not mix the state types.

import {
selectCellRange,
clearCominsSelection,
getCominsSelectedCellRange,
} from 'comins-table/selection';

A focused path for React-state row/cell selection functions and types. Use /core selection helpers with neutral state.

import 'comins-table/styles.css';

The public style entry required for Table layout and the default theme. Import it once from the application entry point.

The site validates public paths against the package exports contract. Direct references such as comins-table/dist/core.js can break when internal package layout changes and are unsupported.

Use the root entry for JSX labels, cell.props, themes, and renderer helpers. React peer dependencies and the client-only Table boundary remain. See the 0.2.0 migration guide.

comins-table/xlsx

import { inspectCominsXlsx, importCominsRowsFromXlsx, exportCominsRowsToXlsx } from 'comins-table/xlsx';

Process ordinary-row Excel input/output as Uint8Array/ArrayBuffer. File selection, saving and Worker execution are application-owned. See the export guide.