# abakus

> Abakus is table component for projects based on tailwindcss and react

Latest version **0.0.1-2** (published 2021-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install abakus
pnpm add abakus
yarn add abakus
bun add abakus
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-2 |
| Published | 2021-08-12 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kolezka |
| Maintainers | kolezka |

## Links

- npm: https://www.npmjs.com/package/abakus
- Repository: https://github.com/kolezka/abakus
- Homepage: https://github.com/kolezka/abakus#readme
- Issues: https://github.com/kolezka/abakus/issues
- npm.io page: https://npm.io/package/abakus

## Recent versions

- 0.0.1-2 (latest) — 2021-08-12
- 0.0.1-1 — 2021-05-24
- 0.0.1 — 2021-05-24

## README

# abakus <https://abakus.raqz.pl/>

## Install

```bash
npm install --save abakus
```

## Usage

```tsx
import React, { Component } from 'react'
import { Table } from 'abakus'


const UsersTable = ({ users }) => {

  const columns: Column<IData>[] = [
    {
      field: "id",
      title: 'No',
      width: 50,
    },
    {
      title: 'Name',
      field: "name"
    },
    {
      title: 'Surname',
      field: "surname",
    },
    {
      field: "",
      title: "Actions",
      width: 150,
      classNames: {
        header: 'text-right pr-4',
        root: 'text-right pr-4'
      },
      // Delete user button
      renderCol: (_, row) => <button onClick={() => remove(row)} className='text-sm border border-black border-opacity-50 bg-black bg-opacity-20 hover:bg-opacity-30 py-1 px-2 rounded-md'>Delete</button>
    }
  ];

  return (
    <Table
      data={users}
      columns={columns} />
  );
}

```

## License

MIT © [kolezka](https://github.com/kolezka)

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