Pagination
Pagination with page navigation, next and previous links.
code
Expend code
#custom1
code
Expend code
#custom2
code
Expend code
Props
다음 속성을 사용하여 툴팁을 맞춤 설정할 수 있습니다.
Prop | Type | Default | Description |
---|---|---|---|
currentPage | number | - | Sets the currently selected page number. |
totalPages | number | - | Specifies the total number of pages. |
showingPages | number | - | Determines the number of page numbers to display at once. |
onPageChange | (page: number) => void | - | Callback function called when the page number is changed. |
currentPageStyle | string | border border-border rounded-lg | Defines the style for the currently selected page. |
startIcon | React.ReactNode | <ChevronsLeft size={20} /> | Specifies the icon used for the button that moves to the first page. |
prevIcon | React.ReactNode | <ChevronLeft size={20} /> Previous | Specifies the icon used for the button that moves to the previous page. |
nextIcon | React.ReactNode | Next <ChevronRight size={20} /> | Specifies the icon used for the button that moves to the next page. |
lastIcon | React.ReactNode | <ChevronsRight size={20} /> | Specifies the icon used for the button that moves to the last page. |