Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Index Coverage

ProNew

Which 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

PropTypeDefault
pages*IndexedPage[]—
requestedstring[]

The addresses already submitted for indexing. Their button reads "Requested".

[]
onRequestIndexing(url: string) => void

Called with a page's address when indexing is requested. Leave it out to hide the action.

—
classNamestring—

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.