# react-colgroup

> A component wrapping the colgroup tag

Latest version **1.0.2** (published 2015-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-colgroup
pnpm add react-colgroup
yarn add react-colgroup
bun add react-colgroup
```

## 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.0.2 |
| Published | 2015-08-21 |
| First published | 2015-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Edoardo Colombo |
| Maintainers | gcedo |
| Keywords | react, component, colgroup |

## Links

- npm: https://www.npmjs.com/package/react-colgroup
- Repository: https://github.com/gcedo/react-colgroup
- Issues: https://github.com/gcedo/react-colgroup/issues
- npm.io page: https://npm.io/package/react-colgroup

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-08-21
- 1.0.1 — 2015-08-21
- 1.0.0 — 2015-08-21
- 0.0.0 — 2015-08-21

## README

# react-colgroup
This simple React component is meant to use the `<colgroup>` tag to statically
set the number and width of columns in a HTML table.

## Example
In the following example, we create a table where the columns will be respectively 120, 140 and 200 pixels wide.

```javascript
import React from 'react';
import Colgroup from 'react-colgroup';

const table = (
    <table>
        <Colgroup cols={[120, 140, 200]}/>
        <tbody>
            <tr>
                <td>Hello</td>
                <td>World</td>
                <td>!</td>
            </tr>
        </tbody>
    </table>
);


React.render(table, document.getElementById('colgroup-example'));
```

## License
MIT

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