Top pages
The pages people read, as a table you can sort by any column. Each row carries its share of all views as a bar under the path and its daily trend; opening one shows that page alone with its trend drawn large, the change on the previous period and where its readers came from.
Top pages in the last 28 days
| 28.8k | 18.1k | |
| 18.8k | 11.1k | |
| 15.6k | 9,071 | |
| 14.6k | 7,306 | |
| 9,174 | 5,099 | |
| 8,027 | 4,491 | |
| 7,893 | 3,982 | |
| 6,323 | 4,138 | |
| 5,079 | 3,156 | |
| 3,384 | 2,132 | |
| 2,589 | 1,607 | |
| 1,349 | 813 |
When to use
- The pages report in a web analytics or documentation tool.
- Any ranked list of URLs where share and trend matter as much as the count.
When not to use
- Arbitrary records; use the data table.
- Live readers; use realtime visitors.
Installation
pnpm dlx shadcn@latest add @caliper/top-pages
Adds its 40 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
TopPages
10 props
sortPages
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- Enter or Space
- Opens the menu from its trigger and activates the focused item.
- ↓ or ↑
- Moves between items, wrapping at the ends; disabled items are skipped.
- → or ←
- Opens and closes a submenu.
- Escape
- Closes the menu and returns focus to the trigger.
- A–Z
- Moves to the next item that starts with that letter.
Accessibility
It exposes alert semantics, with aria-labelledby, aria-hidden and aria-busy kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/top-pages.mdThe index of every part is at /llms.txt.