Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @arkejs/table

![Table](https://github.com/arkemishub/table/assets/81776297/36560ef9-a4b0-4e4c-83dd-971eaa433efb)
![Types](https://github.com/arkemishub/table/assets/81776297/36560ef9-a4b0-4e4c-83dd-971eaa433efb)

[![License](https://img.shields.io/badge/license-Apache2.0-blue.svg)](https://github.com/arkemishub/arke-monorepo/blob/master/LICENSE.txt)

Expand Down Expand Up @@ -30,7 +30,7 @@ npm i @arkejs/table
The basic implementation allows you to display data without having any sort of control over pagination, filtering and more.

```jsx
<Table data={data} columns={columns} />
<Types data={data} columns={columns} />
```

---
Expand All @@ -51,11 +51,11 @@ function MyTable() {
},
});

return <Table {...tableProps} data={data}/>
return <Types {...tableProps} data={data}/>
}
```

As you can see by using `useTable` we don't need to define props for the `Table` component since they are returned in `tableProps`.
As you can see by using `useTable` we don't need to define props for the `Types` component since they are returned in `tableProps`.
In addition, the hook provides us some ways to manage the table externally.

Let's now implement a simple pagination, fully controlled by outside.
Expand All @@ -71,7 +71,7 @@ function MyTable() {

return (
<>
<Table {...tableProps} data={data}/>
<Types {...tableProps} data={data}/>
<button
disabled={currentPage == 0}
onClick={() => {
Expand All @@ -93,7 +93,7 @@ function MyTable() {
}
```

By using `useTable` exported function we ended up with a `Table` which pagination is managed in the way that we like.
By using `useTable` exported function we ended up with a `Types` which pagination is managed in the way that we like.


### How versioning with changesets
Expand Down
51 changes: 0 additions & 51 deletions apps/docs/Dockerfile

This file was deleted.

Empty file removed apps/docs/README.md
Empty file.
50 changes: 0 additions & 50 deletions apps/docs/app/docs/[[...slug]]/page.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions apps/docs/app/layout.tsx

This file was deleted.

Binary file removed apps/docs/app/opengraph-image.png
Binary file not shown.
11 changes: 0 additions & 11 deletions apps/docs/app/page.tsx

This file was deleted.

Binary file removed apps/docs/app/twitter-image.png
Binary file not shown.
25 changes: 0 additions & 25 deletions apps/docs/components/Footer.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions apps/docs/components/Mdx.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions apps/docs/components/MobileNavbar.tsx

This file was deleted.

44 changes: 0 additions & 44 deletions apps/docs/components/Navbar.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions apps/docs/components/Pagination.tsx

This file was deleted.

Loading