# @types/reactable

> TypeScript definitions for reactable

Latest version **0.14.11** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/reactable
pnpm add @types/reactable
yarn add @types/reactable
bun add @types/reactable
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.14.11 |
| Published | 2023-11-07 |
| First published | 2017-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/reactable
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactable
- npm.io page: https://npm.io/package/@types/reactable

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 0.14.11 (latest) — 2023-11-07
- 0.14.8 (ts3.7) — 2021-10-14
- 0.14.7 (ts3.6) — 2021-07-08
- 0.14.6 (ts2.8) — 2019-02-13
- 0.14.2 (ts2.6) — 2018-02-12
- 0.14.1 (ts2.3) — 2017-08-21
- 0.14.0 (ts2.0) — 2017-07-24
- 0.14.10 — 2023-10-18
- 0.14.9 — 2023-09-27
- 0.14.5 — 2019-02-04
- 0.14.4 — 2018-11-15
- 0.14.3 — 2018-08-06

## README

# Installation
> `npm install --save @types/reactable`

# Summary
This package contains type definitions for reactable (https://github.com/abdulrahman-khankan/reactable).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactable.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactable/index.d.ts)
````ts
import * as React from "react";

export interface KeyLabelObject {
    key: string;
    label: string;
}

export type ColumnsType = string | KeyLabelObject;

export type SortDirection = "asc" | "desc";

export type FilterMethodType = (text: string) => void;

export interface TableComponentProperties<T> {
    children?: React.ReactNode;
    data?: T[] | undefined;
    className?: string | undefined;
    columns?: ColumnsType[] | undefined;
    defaultSort?: { column: string; direction: SortDirection } | undefined;
    id?: string | undefined;
    sortable?: string[] | boolean | undefined;
    sortBy?: boolean | undefined;
    filterable?: string[] | undefined;
    filterBy?: string | undefined;
    onFilter?: FilterMethodType | undefined;
    itemsPerPage?: number | undefined;
    noDataText?: string | undefined;
    pageButtonLimit?: number | undefined;
    currentPage?: number | undefined;
    hideFilterInput?: boolean | undefined;
}

export interface ThProperties {
    children?: React.ReactNode;
    column: string;
    className?: string | undefined;
}

export interface TrProperties<T> {
    children?: React.ReactNode;
    data?: T | undefined;
    className?: string | undefined;
}

export interface TdProperties {
    children?: React.ReactNode;
    column: string;
    value?: any;
    data?: any;
}

export class Table<T> extends React.Component<TableComponentProperties<T>> {
}

export class Thead extends React.Component {
}

export class Th extends React.Component<ThProperties> {
}

export class Tr<T> extends React.Component<TrProperties<T>> {
}

export class Td extends React.Component<TdProperties> {
}

export class Tfoot extends React.Component {
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Christoph Spielmann](https://github.com/spielc), and [Priscila Moneo](https://github.com/priscila-moneo).

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