import { useState } from 'react'import { Pagination } from 'welcome-ui/Pagination'import type { PaginationProps } from 'welcome-ui/Pagination/types'const Example = () => {const [page, setPage] = useState<PaginationProps['page']>(8)return (<Paginationaria-label="Example Pagination"getHref={page => `?page=${page}`}onChange={page => setPage(Number(page))}page={page}pageCount={10}/>)}export default Example
Range display
When your range display is above your pageCount, all the pages are shown.
Change range with rangeDisplay, by default it is 5.
First and Last buttons
You can optionally display First and Last buttons by setting showEdgeControls to true. These buttons allow users to quickly jump to the first or last page, which is especially useful for large datasets with many pages.
Size
The Pagination component supports two different sizes: md and lg (default). Use the size prop to control the overall size of the pagination controls.
Custom texts
You can customize the text displayed on all navigation buttons using the navigationTexts prop.