Skip to content

ListSlotProps

Defined in: packages/core/src/collections/types.ts:767

Props every list.toolbar contribution receives (Decision 17/37) — the collection the list view is showing. Deliberately minimal, mirroring EditSlotProps’s { kind, slug } (components/types.ts): the richer list-wide state (urlState, columns, columnMenuEntries, selection, density, …) comes from useListViewContext() (@vexcms/react), which a built-in or a project’s own contribution calls itself, exactly as edit.* contributions call useVexDocument() rather than receiving document state as a prop. Lives here, not in components/types.ts alongside EditSlotProps, because it needs the real CollectionConfig type, which components/types.ts cannot import without a circular dependency (collections/types.ts already imports component types the other way).

collection: CollectionConfig

Defined in: packages/core/src/collections/types.ts:769

The collection the list view is showing.