Skip to content
Star

Admin List Page

A common shell for any "manage X" page: a page header, a search filter, a data table with per-row actions, and an empty state when the filter matches nothing. Combines PxHeader, PxListLayout, PxFilterBar, PxDataTable, PxDropdownMenu, PxBadge, and PxEmptyState.

Admin List Page

Team Members

Name
Role
Status
Alice SmithAdminActive
Bob JonesEditorActive
Carla DiazViewerSuspended
Showing 1 to 3 of 3 items
1 / 1

Why this shape

  • PxHeader lives outside PxListLayout — the layout only exposes tabs, filter, and a default content slot, not a header slot (see PxListLayout's slot table).
  • The empty state is manual. PxDataTable doesn't render one automatically when items is empty, so switch between PxEmptyState and PxDataTable with v-if/v-else on your filtered list, as shown above.
  • Row actions use slotName, not a dedicated actions prop — any column can point at a named slot, which is how both the status badge and the dropdown menu get into the table.

Built with VitePress