# react-bootstrap-table-loading

> This component create a ramdom size placeholder.

Latest version **1.1.4** (published 2022-10-29) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2022-10-29 |
| First published | 2022-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 20.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Victor Aparecido Barbato Rossi |
| Maintainers | victorap93 |
| Keywords | react, react-bootstrap, bootstrap, table-loading, table, loading |

## Links

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

## Dependencies (2)

- [bootstrap](https://npm.io/package/bootstrap.md) ^5.2.1
- [react-bootstrap](https://npm.io/package/react-bootstrap.md) ^2.5.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2022-10-29
- 1.1.2 — 2022-10-15
- 1.1.1 — 2022-10-12
- 1.1.0 — 2022-10-12
- 1.0.2 — 2022-09-25
- 1.0.1 — 2022-09-25
- 1.0.0 — 2022-09-24

## README

# React Bootstrap Table Loading

This component creates a placeholder of random size with specific number of rows and columns.

## Install

```bash
npm install react-bootstrap-table-loading
```

## Usage

Component usage example.

![TableLoading](https://github.com/victorap93/react-bootstrap-table-loading/blob/main/attachments/TableLoading.gif?raw=true)

```typescript
import 'bootstrap/dist/css/bootstrap.min.css';

import { Table } from 'react-bootstrap';
import { TableLoading } from 'react-bootstrap-table-loading';

export default () => {
  return <Table striped bordered>
    <thead>
      <tr>
        <th>First column</th>
        <th>Second column</th>
        <th>Third column</th>
      </tr>
    </thead>
    <TableLoading
      columns={4}
      lines={4}
    />
  </Table>
}
```

You can see a interative component in [Storybook](https://main--634ac42f704ee9968be99133.chromatic.com).

## Props

### TableLoading

| Name       | Type               | Default | Description                                                                   |
| ---------- | ------------------ | ------- | ----------------------------------------------------------------------------- |
| columns    | `Column` \| number | -       | **Required**. Array with `Column` object type values or numeric column number |
| lines      | number             | -       | **Required**. Number of lines                                                 |
| tbody      | boolean            | true    | Render with `<tbody>` element                                                 |
| tbodyProps | object             | {}      | tbody properties                                                              |

## Types

### Column

| Name | Type   | Default | Description                |
| ---- | ------ | ------- | -------------------------- |
| min  | number | -       | **Required**. Min col size |
| max  | number | -       | **Required**. Max col size |

## License
MIT

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