Index Coverage
ProNewWhich pages a search engine has indexed: a bar of the proportions whose legend filters the list, the reason for each page's state, and a request-indexing action that settles into Requested.
Installation
pnpm dlx shadcn@latest add @viewport/index-coverage
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| pages* | IndexedPage[] | — |
| requested | string[]The addresses already submitted for indexing. Their button reads "Requested". | [] |
| onRequestIndexing | (url: string) => voidCalled with a page's address when indexing is requested. Leave it out to hide the action. | — |
| className | string | — |
Accessibility
- The bar is described as text and the counts are written out.
- Filters are pressed-state buttons.
- Each action names its page; a requested page cannot be sent twice.
- Respects prefers-reduced-motion.