@inkset/table
v0.1.5
Published
Responsive markdown table plugin for Inkset.
Downloads
706
Maintainers
Readme
@inkset/table
Responsive markdown table plugin for Inkset.
Install
npm install @inkset/tableUsage
import { Inkset } from "@inkset/react";
import { createTablePlugin } from "@inkset/table";
const plugins = [createTablePlugin({ zebra: true, showCopy: true })];
export const Example = ({ content }: { content: string }) => {
return <Inkset content={content} plugins={plugins} />;
};Options
showCopy— show the CSV copy button in the table header bar. Defaulttrue.borderStyle—"all"(full grid),"horizontal"(row dividers only, default), or"none".zebra— alternate row backgrounds via--inkset-table-zebra-bg. Defaultfalse.stickyHeader— pin<thead>while the table scrolls vertically. Defaultfalse. Only meaningful inside a height-clipped container.
