Pagination · Disabled State · 01
Loading preview...
Component
安装 Installation
用法 Usage
className 与 variant、size 可以一起用。字段以 timkit agent inspect pagination --json 的 props 为准。
示例
一次看一个示例。左侧按名称筛选,预览里可切换源码和框架。
12 / 12
结构化 API
与 UCS schema 对齐的 props、逻辑机与多框架运行时。
Component
pagination
Logic
zag / pagination
Runtime Frameworks
Supported Platforms
| Prop | Type | Default | Description |
|---|---|---|---|
| logic.provider* | enum (zag | native | none) | zag | State and interaction provider used by this component. |
| logic.machine | string | pagination | Underlying state machine identifier when provider is zag. |
| platforms* | array | Web, WeChat Mini Program | Platforms officially supported by this schema. |
| frameworks* | array | React, Vue, Weapp, HTML | Framework demos/code currently available in registry files. |
| dependencies | array | @timui/core, @zag-js/react | Runtime package dependencies required by this registry item. |
| optionalPeerDependencies | array | lucide-react | Optional peer dependencies used by this registry item. |
| registryDependencies | array | button | Dependent Timkit registry components/hook entries. |
| Prop | Type | Default | Description |
|---|---|---|---|
| disabled | boolean | false | When true, page changes are ignored. |
| page | number | 1 | The current active page in controlled mode. |
| defaultPage | number | 1 | The initial page used in uncontrolled mode. |
| count | number | - | Total number of items used to calculate page count. |
| pageSize | number | 10 | Number of items rendered per page. |
| siblingCount | number | 1 | Number of sibling pages shown around the active page. |
| Prop | Type | Default | Description |
|---|---|---|---|
| onPageChange | event | - | Callback fired when the active page changes. |
| onPageSizeChange | event | - | Callback fired when page size changes. |
| Prop | Type | Default | Description |
|---|---|---|---|
| default | slot | - | The pagination segments |
| Prop | Type | Default | Description |
|---|---|---|---|
| root* | root | - | The pagination container |
| content | part | - | The parent of items |
| item | part | - | A single item wrapper |
| link | part | - | A link to a page |
| previous | part | - | The previous page button |
| next | part | - | The next page button |
| ellipsis | part | - | The ellipsis indicator |
该组件尚无扩展说明文档。
键盘与焦点
跨 React、Vue 与小程序共享的交互与可读名称约定。
行为契约
props、默认值和运行时状态。