Skip to content

Commit 78e09e4

Browse files
update readme
1 parent fa2d22d commit 78e09e4

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ Second, you can make use of the `useSearchAndPagination` hook. This package impl
3636
This hook supports the combination of a search value and pagination and manages the state of the search value, and the
3737
pagination values.
3838

39+
The hook supports following configuration parameter object:
40+
41+
|value|type|description|
42+
|---|---|---|
43+
|indexType|IndexType|It defines whether the pagination is zero or one based. default: 0|
44+
|pageSize|number|Page size of the pagination. default: 15|
45+
3946
The hook returns the following object:
4047

4148
|value|type|description|
@@ -53,7 +60,7 @@ const users = [
5360
]
5461

5562
function UserList() {
56-
const { page, size, search, actions } = useSearchAndPagination()
63+
const { page, size, search, actions } = useSearchAndPagination({pageSize: 2})
5764

5865
return (
5966
<div>

0 commit comments

Comments
 (0)