Skip to content

CollectionListViewProps

Defined in: packages/core/src/framework.ts:69

Props passed to the CollectionListView component.

TCollectionSlug is inferred from the collection prop and narrows the collection type to a specific slug after vex generate runs. TDoc defaults to VexDocument and can be narrowed to a generated document interface when the caller has a typed initial data array.

ViewComponentMap

TFieldMeta extends object = { }

TCollectionMeta extends object = { }

TCollectionSlug extends CollectionSlug = CollectionSlug

TDoc extends VexDocument = VexDocument

collection: CollectionConfig<TFieldMeta, TCollectionMeta, TCollectionSlug>

Defined in: packages/core/src/framework.ts:76

The resolved collection configuration for the collection being listed.


optional initialData?: PaginationResult<TDoc>

Defined in: packages/core/src/framework.ts:82

Pre-fetched documents from the server. Passed as initialData to the TanStack Query so the list renders immediately on first load. Omit when rendering client-side only.