Actions and display
Pagination
Props for Pagination componentPublic export
typescript
import { Pagination } from '@happyvertical/smrt-ui/ui';- Import path
@happyvertical/smrt-ui/ui- Props
- 7
- Props described
- 7 of 7
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
currentPagenumberYesCurrent active page (1-based)totalPagesnumberYesTotal number of pagesbaseUrlstringNoBase URL for link mode (e.g., '/articles')onPageChange(page: number) => voidNoWhen provided, renders buttons instead of links and calls this on page changearia-labelstringNoAccessible label for pagination navshowFirstLastbooleanNoShow first/last page buttonsmaxVisiblenumberNoMaximum number of visible page numbersBindable state
This component has no bindable public state.
Callback events
onPageChange(page: number) => void