Skip to content

AdminCardSectionProps

Defined in: packages/react/src/admin/AdminCardSection.tsx:22

Props for AdminCardSection.

T

The item type this section lists (a collection/media-collection/global config, or any other shape the caller resolves per-card).

headingClassName: string

Defined in: packages/react/src/admin/AdminCardSection.tsx:31

The heading’s own className — callers vary this (DashboardView’s first section uses px-4 pb-2, its own <h1> above already supplies top spacing; every other section, here and elsewhere, uses p-4 pb-2 for its own top spacing too) to preserve each page’s exact prior spacing, pixel for pixel.


items: readonly T[]

Defined in: packages/react/src/admin/AdminCardSection.tsx:33

The items to render, already permission-filtered by the caller — this component applies no RBAC of its own.


resolveItem: (item) => AdminCardSectionItem

Defined in: packages/react/src/admin/AdminCardSection.tsx:35

Resolves one item’s card content.

T

AdminCardSectionItem


title: string

Defined in: packages/react/src/admin/AdminCardSection.tsx:24

Section heading, e.g. "Collections", "Media", "Globals".