Releases: Panenco/panenco-ui
Releases · Panenco/panenco-ui
v6.26.1
What's Changed
Full Changelog: v6.26.0...v6.26.1
Migration guide
locales
prop
New type:
locales?: {
first: string;
goToFirstPage: string;
goToLastPage: string;
goToNextPage: string;
goToPage: (page: number) => string;
goToPreviousPage: string;
last: string;
next: string;
previous: string;
};
Example:
<Pagination
locales={
first: 'First',
last: 'Last',
previous: 'Previous',
next: 'Next',
+ goToFirstPage: 'Go to the first page',
+ goToLastPage: 'Go to the last page',
+ goToNextPage: 'Go to the next page',
+ goToPreviousPage: 'Go to the previous page',
+ goToPage: (pageNumber: number): string => `Go to page ${pageNumber}`,
}
/>