Searchable resource index

Bring status tabs, search, sortable columns, row quick actions, pagination, and empty states into one responsive table.

Install
State

Installation

Install command

Free, no account required. Writes app/components/resource-index.tsx and adds @shopify/polaris-types@2.0.0. Registry item

API reference

heading / headerActions
string / ReactNodeName the collection and optionally add primary or secondary header actions in the section.
Optional
tabs / activeTab / onTabChange
readonly ResourceIndexTab[] / string / (tabId: string) => voidRender quick status or segment tabs with optional item counts above the search bar.
Optional
sort / onSortChange
ResourceIndexSort / (sort: ResourceIndexSort) => voidControl the active sorted column ID and direction across sortable column headers and the Sort menu.
Optional
getRowClickDelegate / rowActions
(record: RecordType) => string | undefined / (record: RecordType) => readonly ResourceIndexRowAction[]Delegate full-row clicks to a primary link inside each row and add per-row navigation or callback actions in an overflow menu.
Optional
getRowLabel
(record: RecordType) => stringProvide an accessible label describing each row for its trailing action menu.
Optional
emptyHeading / emptyContent / emptyAction
string / ReactNode / { label: string; onAction: () => void }Configure the first-use empty state heading, message, and primary call to action.
Optional
emptyFilterRecovery
{ label: string; onClear: () => void }Supply a custom action to reset active tab or external filters when no records match.
Optional
toolbar / footer
ReactNodePlace selection controls inside the table filters bar and custom content below the table.
Optional
pagination
ResourceIndexPaginationEnable native table pagination with hasPrevious, hasNext, onPrevious, onNext, and an optional page label.
Optional
totalCount / sourceCount
number / numberAnnounce the full matching count when records contains one page, and pass 0 for sourceCount in first-use empty states.
records.length
recordsRequired
readonly RecordType[]Pass the rows for the active page matching the current search.
Required
getRecordIdRequired
(record: RecordType) => stringReturn a stable, unique ID for each row.
Required
columnsRequired
readonly [ResourceIndexColumn<RecordType>, ...ResourceIndexColumn<RecordType>[]]Supply columns with ID, heading, renderer, optional sortable/sortLabels, listSlot for mobile cards, and format alignment.
Required
query / onQueryChangeRequired
string / (query: string) => voidControl the search value in your host route.
Required
searchLabel
stringGive the search field a resource-specific accessible name.
"Search records"
loading
booleanAnnounces that the host is fetching records. Otherwise announces the result count, empty list, or search with no matches.
false

Run under Shopify App Home AppProvider. Point polarisUrl to the Polaris 2.0 runtime.