CamoPagination
Moves through pages. page is zero-based. One Tab stop: the arrow keys move between the parts and Space or
Enter picks one. label names the navigation; a page announces "Page 3" and the current one "current page".
With one page or fewer it draws nothing.
API
- Kotlin
- Dart
public fun CamoPagination(
pageCount: Int,
page: Int,
onPageChange: (Int) -> Unit,
modifier: Modifier = Modifier,
variant: PaginationVariant = PaginationVariant.Numbered,
siblings: Int = 1,
enabled: Boolean = true,
label: String = "Pagination",
)
| Name | Type | Default |
|---|---|---|
pageCount | Int | required |
page | Int | required |
onPageChange | (Int) -> Unit | required |
modifier | Modifier | Modifier |
variant | PaginationVariant | PaginationVariant.Numbered |
siblings | Int | 1 |
enabled | Boolean | true |
label | String | "Pagination" |
Design notes
Why CamoPagination works this way, its states and its edge cases: contributor docs.