# bootstrap-table-react

> Simple bootstrap table in react

Latest version **1.2.1** (published 2016-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install bootstrap-table-react
pnpm add bootstrap-table-react
yarn add bootstrap-table-react
bun add bootstrap-table-react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-09-15 |
| First published | 2015-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | pscanf |

## Links

- npm: https://www.npmjs.com/package/bootstrap-table-react
- Repository: https://github.com/staticdeploy/bootstrap-table-react
- Homepage: https://github.com/staticdeploy/bootstrap-table-react#readme
- Issues: https://github.com/staticdeploy/bootstrap-table-react/issues
- npm.io page: https://npm.io/package/bootstrap-table-react

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [change-case](https://npm.io/package/change-case.md) ^3.0.0

## Recent versions

- 1.2.1 (latest) — 2016-09-15
- 1.2.0 — 2016-09-14
- 1.1.1 — 2016-03-07
- 1.1.0 — 2016-03-07
- 1.0.1 — 2015-12-31
- 1.0.0 — 2015-12-31

## README

[![npm version](https://badge.fury.io/js/bootstrap-table-react.svg)](https://badge.fury.io/js/bootstrap-table-react)
[![Build Status](https://travis-ci.org/staticdeploy/bootstrap-table-react.svg?branch=master)](https://travis-ci.org/staticdeploy/bootstrap-table-react)
[![Dependency Status](https://david-dm.org/staticdeploy/bootstrap-table-react.svg)](https://david-dm.org/staticdeploy/bootstrap-table-react)
[![devDependency Status](https://david-dm.org/staticdeploy/bootstrap-table-react/dev-status.svg)](https://david-dm.org/staticdeploy/bootstrap-table-react#info=devDependencies)

# bootstrap-table-react

A simple bootstrap table in react.

## propTypes

A snippet is worth a thousand words.

```js
const column = PropTypes.shape({
    key: PropTypes.string.isRequired,
    formattedKey: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
    valueFormatter: PropTypes.func
});

const item = PropTypes.shape({
    id: PropTypes.string.isRequired
});

export default class Table {

    static propTypes = {
        className: PropTypes.string,
        collection: PropTypes.arrayOf(item).isRequired,
        columns: PropTypes.arrayOf(
            PropTypes.oneOfType([PropTypes.string, column])
        ).isRequired,
        onRowClick: PropTypes.func,
        tableOptions: PropTypes.shape({
            bordered: PropTypes.bool,
            condensed: PropTypes.bool,
            hover: PropTypes.bool,
            responsive: PropTypes.bool,
            striped: PropTypes.bool
        })
    }

    // ...

}
```

---
_Source: https://npm.io/package/bootstrap-table-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
