{ "manifest": { "name": "@patternfly/react-table", "version": "5.4.16", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "typesVersions": { "*": { "deprecated": [ "dist/esm/deprecated/index.d.ts" ] } }, "patternfly:src": "src/", "sideEffects": false, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/patternfly/patternfly-react.git" }, "keywords": [ "react", "patternfly", "table" ], "author": { "name": "Red Hat" }, "license": "MIT", "bugs": { "url": "https://github.com/patternfly/patternfly-react/issues" }, "homepage": "https://github.com/patternfly/patternfly-react/tree/main/packages/react-table#readme", "scripts": { "build:umd": "rollup -c --environment IS_PRODUCTION", "build:single:packages": "node ../../scripts/build-single-packages.js --config single-packages.config.json", "clean": "rimraf dist components deprecated", "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { "@patternfly/react-core": "^5.4.14", "@patternfly/react-icons": "^5.4.2", "@patternfly/react-styles": "^5.4.1", "@patternfly/react-tokens": "^5.4.1", "lodash": "^4.17.21", "tslib": "^2.7.0" }, "peerDependencies": { "react": "^17 || ^18", "react-dom": "^17 || ^18" }, "gitHead": "2aa38ef2a1cb4889c35e98c0a74576351488f901", "_registry": "npm", "_loc": "/home/josie/.cache/yarn/v6/npm-@patternfly-react-table-5.4.16-3197db7cf7cc3a2f721bbb8adb0fb7ca9182f5fc-integrity/node_modules/@patternfly/react-table/package.json", "readmeFilename": "README.md", "readme": "# @patternfly/react-table\n\nThis package provides Table PatternFly components based on [PatternFly][patternfly]\n\n### Installing\n\n```sh\nyarn add @patternfly/react-table\n```\n\nor\n\n```sh\nnpm install @patternfly/react-table --save\n```\n\n## Usage\n\nIt's strongly advised to use the PatternFly base CSS in your whole project, or some components may diverge in appearance:\n\n```js\nimport '@patternfly/react-core/dist/styles/base.css';\n```\n\n#### Example component usage\n\n```js\nimport { Table, Thead, Tr, Th, Td, Tbody } from '@patternfly/react-table';\n\nexport const ComposableTableBasic = () => {\n const repositories = [\n { name: 'one', branches: 'two', prs: 'three' },\n { name: 'one - 2', branches: null, prs: null },\n { name: 'one - 3', branches: 'two - 3', prs: 'three - 3' }\n ];\n\n const columnNames = {\n name: 'Repositories',\n branches: 'Branches',\n prs: 'Pull requests'\n };\n \n return (\n
| {columnNames.name} | \n{columnNames.branches} | \n{columnNames.prs} | \n
|---|---|---|
| {repo.name} | \n{repo.branches} | \n{repo.prs} | \n