# @primitives/table

> This is A WEB COMPONENT, in the next version we will add native variation.

Latest version **3.1.0** (published 2021-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @primitives/table
pnpm add @primitives/table
yarn add @primitives/table
bun add @primitives/table
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2021-05-06 |
| First published | 2019-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 2 |
| Unpacked size | 50.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52 |
| Maintainers | julia.spehrer, ijigg, psxcode, deepsweet, xaviervia, irminakacz, fosimus, atilaz, moria.am, gideon.gur |

## Links

- npm: https://www.npmjs.com/package/@primitives/table
- Repository: https://github.com/bubble-dev/_
- Homepage: https://github.com/bubble-dev/_#readme
- Issues: https://github.com/bubble-dev/_/issues
- npm.io page: https://npm.io/package/@primitives/table

## Dependencies (2)

- [refun](https://npm.io/package/refun.md) ^3.0.0
- [stili](https://npm.io/package/stili.md) ^3.1.0

## Recent versions

- 3.1.0 (latest) — 2021-05-06
- 3.0.1 — 2021-02-01
- 3.0.0 — 2020-10-15
- 2.0.3 — 2020-08-31
- 2.0.2 — 2020-08-20
- 2.0.1 — 2020-08-19
- 2.0.0 — 2020-04-27
- 1.0.0 — 2020-01-23
- 0.6.0 — 2019-11-11
- 0.5.1 — 2019-10-04
- 0.5.0 — 2019-10-03
- 0.4.0 — 2019-08-29
- 0.3.1 — 2019-08-22
- 0.3.0 — 2019-08-21
- 0.2.0 — 2019-08-05
- … 2 more at https://npm.io/package/@primitives/table/versions

## README

This is A WEB COMPONENT, in the next version we will add native variation.

`Table`, `TableBody`, `TableBodyCell`, `TableHead`, `TableHeadCell`, `TableRow` are use in order to render web tables.

These map to the same corresponding props in Web.

## Raw type definitions

Table:
```ts
export type TTable = {
  id?: string,
  children?: ReactNode,
  backgroundColor?: string,
  borderColor?: string,
  borderTopWidth?: number,
  borderBottomWidth?: number,
  borderLeftWidth?: number,
  borderRightWidth?: number,
  borderStyle?: string,
}
```

TableBody:
```ts
export type TTableBody = {
  id?: string,
  children?: ReactNode,
}
```

TableBodyCell:
```ts
export type TTableBodyCell = {
  id?: string,
  children?: ReactNode,
  backgroundColor?: string,
  borderColor?: string,
  borderTopWidth?: number,
  borderBottomWidth?: number,
  borderLeftWidth?: number,
  borderRightWidth?: number,
  borderStyle?: string,
}
```

TableHead:
```ts
export type TTableHead = {
  id?: string,
  children?: ReactNode,
}
```

TableHeadCell:
```ts
export type TTableHeadCell = {
  id?: string,
  children?: ReactNode,
  backgroundColor?: string,
  borderColor?: string,
  borderTopWidth?: number,
  borderBottomWidth?: number,
  borderLeftWidth?: number,
  borderRightWidth?: number,
  borderStyle?: string,
}
```

TableRow:
```ts
export type TTableRow = {
  id?: string,
  children?: ReactNode,
}
```

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