UNPKG

@cimpress/react-components

Version:
49 lines 1.96 kB
import React from 'react'; import { CodeExample } from '@cimpress/react-components'; import TableCode from '!raw-loader!./table.jsx'; import TableDemo from './table.jsx'; import ComponentDoc from '../../shared/TabbedComponentDoc'; const TableDocs = () => { const propInfos = [ { name: 'condensed', type: 'boolean', default: '', description: 'Toggles the condensed styling for the table.', }, { name: 'selectable', type: 'boolean', default: '', description: 'Toggles the column of checkboxes that make rows selectable.', }, { name: 'keyField', type: 'string', default: '_id', description: 'The unique accessor property in order to render the select field for a particular row.', }, { name: 'goToLabelText', type: 'string', default: '', description: "Text to display in the component that allows jumping to specific text. Default: 'Go To'", }, { name: 'perPageLabelText', type: 'string', default: '', description: "Text to display for the dropdown controlling page size. Default: 'Per Page'", }, ]; return (React.createElement(ComponentDoc, { name: "Table", propInfos: propInfos, remarks: React.createElement("p", null, "All other props not enumerated here will be passed to the underlying component -- see the", ' ', React.createElement("a", { href: "https://github.com/TanStack/table/tree/v6", target: "_blank", rel: "noopener noreferrer" }, "react-table v6 docs"), ' ', "to see more options.") }, React.createElement(TableDemo, null), React.createElement(CodeExample, { code: TableCode }))); }; export default TableDocs; //# sourceMappingURL=index.js.map