Skip to content

Pagination

Pagination

jsx
import Pagination from 'intergalactic/pagination';
<Pagination />;
import Pagination from 'intergalactic/pagination';
<Pagination />;

PaginationProps

& & {...}
NameTypeDescription
totalPagesnumberTotal number of pages
currentPagenumberActive page number
onCurrentPageChange(pageNumber: number) => voidCallback for changing the active page
localestring

Pagination.FirstPage

Takes all the properties of the button.

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.FirstPage />;
import Pagination from 'intergalactic/pagination';
<Pagination.FirstPage />;

Pagination.NextPage

Takes all the properties of the button.

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.NextPage />;
import Pagination from 'intergalactic/pagination';
<Pagination.NextPage />;

Pagination.PageInput

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.PageInput />;
import Pagination from 'intergalactic/pagination';
<Pagination.PageInput />;

PageInputProps

& & {...}

Pagination.PageInput.Value

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.PageInput.Value />;
import Pagination from 'intergalactic/pagination';
<Pagination.PageInput.Value />;

InputValueProps

& & & {...}
NameTypeDescription
valuestringInput value
defaultValuestringDefault value if `value` property is not provided
onChange(value: string, event: React.SyntheticEvent<>) => voidHandler for changing the value
disabledboolean
readOnlybooleanSets the input to the read-only state
sizeInput size

Pagination.PrevPage

Takes all the properties of the button.

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.PrevPage />;
import Pagination from 'intergalactic/pagination';
<Pagination.PrevPage />;

Pagination.TotalPages

jsx
import Pagination from 'intergalactic/pagination';
<Pagination.TotalPages />;
import Pagination from 'intergalactic/pagination';
<Pagination.TotalPages />;

TotalPagesProps

& & {...}

Released under the MIT License.

Released under the MIT License.